-
Notifications
You must be signed in to change notification settings - Fork 0
Git
Marie-Louise edited this page Aug 21, 2018
·
34 revisions
move back one directory
$ cd ..
Update master branch
$ git checkout master
$ git fetch origin - p
$ git reset --hard origin/master
$ git log
NOTE:
$ git fetch origin
can be executed on any branch
create new branch
$ git checkout -b <local_branch_name>
delete branch
$ git branch -d <local_branch_name>
display full list of git branches
$ git branch -a
Push local branch
$ git push origin <local_branch_name>
History
view the history
$ git log
Switch branches
$ git checkout <local_branch_name>