#GIT: THE LESSER KNOWN GREATEST HITS ##git stash: saves the current state of the working directory, but reverts back to the HEAD commit ##git stash apply: add stashed state to the current working directory/branch ##git shortlog: summarizes the git log output (https://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html) ##git commit --amend: use this to amend/replace the most recent commit or commit message ##git reset --hard: resets the index and working tree. Any changes to tracked files in the working tree since are discarded. ##git reset --soft: does not touch the index file or the working tree at all (but resets the head to , just like all modes do). This leaves all your changed files "Changes to be committed", as git status would put it. ##git reset --hard HEAD~2: sets your current branch back to point at and sets your files back to same point
Created
October 31, 2016 15:26
-
-
Save nnchambs/90aa3117f2628a10e8425d5ff8a6486f to your computer and use it in GitHub Desktop.
List of Advanced Git Deep Cuts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment