Git notes: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
get some code:
git clone username@gitserver:/srv/gitroot/ugo-project.git


'''branches'''
'''branches'''
Line 17: Line 21:


  git checkout master
  git checkout master
'''Maintenance'''
Backup
Clean up

Revision as of 15:30, 12 February 2014

get some code:

git clone username@gitserver:/srv/gitroot/ugo-project.git

branches

list branches

git branch

make a new branch

git branch <newbranchname>

switch between branches

git checkout <branchname>
for example to switch back to master:
git checkout master

Maintenance

Backup

Clean up