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
==which changes has occured==
git status
==commit changes==
==commit changes==
  git commit -a -m "updated ..."
  git commit -a -m "updated ..."

Revision as of 20:45, 19 October 2015

git

Download a git repository

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

which changes has occured

git status

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