Setting up Git, GitBash, and GitHub

Slides:



Advertisements
Similar presentations
An Introduction By Sonali and Rasika.  Required for the project  Show the versions of your code in the course of development  Show versions of your.
Advertisements

Github. Download & install git   Git bash  Git GUI.
Chapter 4 The Online Repository CREATE A REPO ONLINE ON GITHUB.COM.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Introduction to Git and Github Joshua imtraum.com.
Git Intro Information mostly from Pro Git. Prepare  Start Eclipse, we have a 5-minute exercise later.
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Getting Started with GIT. Basic Navigation cd means change directory cd.. moves you up a level cd dir_name moves you to the folder named dir_name A dot.
Version control with Github August 26th, 2014 Daniel Schreij VU Cognitive Psychology departement
علیرضا فراهانی استاد درس: جعفری نژاد مهر Version Control ▪Version control is a system that records changes to a file or set of files over time so.
A primer on version control at OTN
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
Version control Using Git Version control, using Git1.
Version Control Systems academy.zariba.com 1. Lecture Content 1.What is Software Configuration Management? 2.Version Control Systems (VCS) 3.Basic Git.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
Git Fundamentals Rochelle Terman 13 January 2014.
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
Intro to Git presented by Brian K. Vagnini Hosted by.
CS 160 and CMPE/SE 131 Software Engineering February 16 Class Meeting Department of Computer Science Department of Computer Engineering San José State.
Hosted Git github. From an alumnus (2010)  You know, the more time I spent in industry the better I've understood what a strong advocate you are for.
INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
Jun-Ru Chang Introduction GIT Jun-Ru Chang
GIT Version control. Version Control Sharing code via a centralized DB Also provides for Backtracking (going back to a previous version of code), Branching.
Basics of GIT for developers and system administrators
Introduction to GitHub
M.Sc. Juan Carlos Olivares Rojas
L – Modeling and Simulating Social Systems with MATLAB
I Don’t Git It: A beginner’s guide to git Presented by Mathew Robinson
Primož Gabrijelčič Git for Programmers Primož Gabrijelčič
CReSIS Git Tutorial.
Code Management With Github & Straw Resistance Measurements
Git-Github Safa Prepared for the course COP4331 – Fall 2016.
CS/COE 1520 Recitation Week 2
Setting up Git, GitBash, and GitHub
Setting up Git, GitBash, and GitHub
Version Control overview
Version Control with Git and GitHub
Macaualy2 Workshop Berkeley 2017
Storing, Sending, and Tracking Files Recitation 2
An introduction to version control systems with Git
Version Control with Git accelerated tutorial for busy academics
SU Development Forum Introduction to Git - Save your projects!
Distributed Version Control with git
Akshay Narayan git up to speed with RCS Akshay Narayan
An introduction to version control systems with Git
The Big Picture
SIG: Open Week 1: GitHub Tim Choh.
An introduction to version control systems with Git
Git-Github Tools Prepared for COP4331. Git-Github Tools Prepared for COP4331.
Getting Started with Git and Bitbucket
Setting up an Eclipse project from a repository on GitHub
Advantages Project Career Divide & Conquer Collaboration
Getting Started: Amazon AWS Account Creation
Version control with Git Part II
Using Github.
Version Control System - Git
Version control with Git
Introduction to Git and GitHub
Convert an Eclipse Project to a Git repository and push up to GitHub
Git started with git: 2018 edition
CMPE/SE 131 Software Engineering February 14 Class Meeting
Version Control with Git and GitHub
Version/revision control via git
Introduction to Git and Github
Git GitHub.
Introduction to The Git Version Control System
Presentation transcript:

Setting up Git, GitBash, and GitHub

https://git-scm.com/downloads Download and install git and gitBash. For the first install I recommend just accepting all the default options. After you have become familiar with the process you can go back and tweak things while installing. (there may be more steps than I have shown)

Make sure to select to use Notepad++ as the default text editor. Install Notepad++ first if you do not yet have it.

Start GitBash Start GitBash with a Desktop shortcut … or right-click menu …or Start Menu

Setup the global user data for your local Git git config --global user.name “user_name” git config --global user.email “emailname@yourmail.com” Make sure that you set this up with the exact same email that you used or will use when you create your GitHub account. If necessary you can set a default text editor (should be an option during gitbash installation) git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession" git config --global core.editor "'C:/Program Files (x86)/Sublime Text 3"/sublime_text.exe' -w"

Create a Git Repository on your local machine (for quick practice example) # Ignore everything * # But not these files... !.gitignore !src !src/** !libs !libs/** !*.txt !*.md !*.jpg !*.png # MAC HIDDEN FILES .DS_Store Createing a Git repository on your local machine. Make a folder in your drive and open gitBash in that folder git init Create a readme.txt or readMe.md file Create a .gitignore file touch .gitignore Edit the .gitignore file based on the structure of your project git add . git commit –m “first commit in project”

Using Git to manage version control for a local repository setting up repo create .gitignore first commit branching git checkout merging merge conflict resolution commonly used git commands: git init git status git log git log --oneline --decorate --graph --all git add . git commit -m “message” git branch <newBranchName> git checkout <branchname> git push origin <branchname> git pull origin <branchname> git merge <branchname>

Connecting your local Git repository to your remote GitHub repository The following material is pulled from the online GitHub help documentation. https://help.github.com/articles/connecting-to-github-with-ssh/ The details of this process is bound to change so make sure to access the original source in the future. Alternatively it can usually be found with the search “ssh for github”

Setup ssh using GitBash command line https://help. github ssh-keygen -t rsa -C <your_email@example.com> Example: Same recommendation as before. For initial setup of your system just keep hitting enter and accepting the default settings. You can go back later and adjust things after you have gotten everything working the first time. Register this key with the GitBash application. // starts the ssh agent which manages your keys ssh-add ~/.ssh/<name of rsa file> // this is the default location and name Public key default location on windows 7: C:\Users\<username>\.ssh\id_rsa // if username has spaces use quotes ssh-keygen -t rsa –C richard.csdept@gmail.com eval $(ssh-agent -s) ssh-add ~/.ssh/id_rsa

Set up an account on GitHub Navigate to: https://github.com/ Set up an account

Add this public key to your GitHub account

Add the ssh key to your GitHub account Make sure to give it a title that will help you remember where it came from when you look at it again in about a year or two.

Test to see whether you can connect to gitHub https://help. github Run this command in gitBash (or Mac/Linux terminal) ssh –T git@github.com You should see a response similar to this: Type yes If the connection is working you should see this: The authenticity of host 'github.com (192.30.252.1)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? Hi username! You've successfully authenticated, but GitHub does not provide shell access.

Make an empty repository on GitHub

Your new empty GitHub repository

Push a local repository to GitHub After creating an empty repository on GitHub follow the instructions the provide to push a local repository to that remote repository. git remote add origin git@github.com:rkjc/My-new-new-newest-repo.git git push -u origin master