Friday, July 12, 2013

GIT Cheat Sheet

GITK

visualise branch branchname
gitk branchname

visualise all branch
gitk --all

visualise change history for file
gitk path_to_file

GIT

show all branches, asterisk active branch
git branch

create branch newbranchname from current head commit
git checkout -b newbranchname

git push

No comments:

Post a Comment

comment: