INTRODUCTION TO GIT
Install Egit for eclipse Open eclipse->Help->Install New Software Search for one of the following -
--All Available Sites-- pdates pdates s/juno s/juno
Install git nloads/list
Bitbucket Lets create an account
Git bash set ur name and git config --global user.name "FIRST_NAME LAST_NAME“ git config --global user.
Create your first Repo Git bash Go to your project folder or create a new one git init git remote add origin
Create README file git commit -m “message“ Git push origin master
ADD SSH Open git bash cd ~ mkdir.ssh cd.ssh ssh-keygen -t rsa cat.ssh/id_rsa.pub ssh-keygen -t rsa -C
Some useful commands Commit history Git log Throwing changes away git reset HEAD somefile.txt git reset HEAD
Reverting commits git revert id Configuring git: colored console output git config --global color.ui auto
List all the branches git branch Create a new branch Git branch
Checkout a branch git checkout Delete a branch git branch -d newfeature
Pull the changes git pull origin master