Git: Difference between revisions

From Halfface
Jump to navigation Jump to search
(Created page with "=git= ==Download a git repository== git clone git@www.halfface.se:project.git ==list branches== git branch -a git branch -r ==Change branch== git checkout remotes/origin/c...")
 
Line 7: Line 7:
==Change branch==
==Change branch==
  git checkout remotes/origin/code-18500
  git checkout remotes/origin/code-18500
==Chagne branch==
==Change branch==
  git branch master
  git branch master

Revision as of 10:01, 1 June 2015

git

Download a git repository

git clone git@www.halfface.se:project.git

list branches

git branch -a
git branch -r

Change branch

git checkout remotes/origin/code-18500

Change branch

git branch master