Presentation is loading. Please wait.

Presentation is loading. Please wait.

INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -

Similar presentations


Presentation on theme: "INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -"— Presentation transcript:

1 INTRODUCTION TO GIT

2 Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -

3 --All Available Sites-- http://download.eclipse.org/egit/u pdates http://download.eclipse.org/egit/u pdates http://download.eclipse.org/release s/juno http://download.eclipse.org/release s/juno

4 Install git  http://code.google.com/p/msysgit/dow nloads/list

5 Bitbucket Lets create an account

6 Git bash set ur name and email git config --global user.name "FIRST_NAME LAST_NAME“ git config --global user.email "MY_NAME@example.com"

7 Create your first Repo Git bash Go to your project folder or create a new one git init git remote add origin

8 Create README file git commit -m “message“ Git push origin master

9 ADD SSH Open git bash cd ~ mkdir.ssh cd.ssh ssh-keygen -t rsa cat.ssh/id_rsa.pub ssh-keygen -t rsa -C "your_email@youremail.com"

10 Some useful commands Commit history Git log Throwing changes away git reset HEAD somefile.txt git reset HEAD

11 Reverting commits git revert id Configuring git: colored console output git config --global color.ui auto

12 List all the branches git branch Create a new branch Git branch

13 Checkout a branch git checkout Delete a branch git branch -d newfeature

14 Pull the changes git pull origin master


Download ppt "INTRODUCTION TO GIT. Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -"

Similar presentations


Ads by Google