Wednesday, November 11, 2015

Some GIT commands

git stash show -p stash@{1}
Shows  the diff of the 2nd most recent local stash with the current version. -p is for the diff, without which it will only show the file names of changed files

$ git checkout -b [name_of_your_new_branch]
$ git push origin [name_of_your_new_branch]
Create a branch and checkout into the new branch