Git: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 2: Line 2:
==Download a git repository==
==Download a git repository==
  git clone git@www.halfface.se:project.git
  git clone git@www.halfface.se:project.git
==commit changes==
git commit -a -m "updated ..."
==list branches==
==list branches==
  git branch -a
  git branch -a

Revision as of 20:42, 19 October 2015

git

Download a git repository

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

commit changes

git commit -a -m "updated ..."

list branches

git branch -a
git branch -r

Change branch

git checkout remotes/origin/code-18500

Change branch

git branch master