Skip to content

Instantly share code, notes, and snippets.

@HiroshiHara
Last active July 7, 2020 14:28
Show Gist options
  • Save HiroshiHara/e472e25b4d97ba69e12d9c9ea3d7604b to your computer and use it in GitHub Desktop.
Save HiroshiHara/e472e25b4d97ba69e12d9c9ea3d7604b to your computer and use it in GitHub Desktop.
#### Git Tips ####
# if you cancel all staging files.
git reset HEAD
# if you revert all local changes.
get checkout .
# if you delete local branch.
git branch -D [branchname]
# show branch list that deleted branch on remote.
git remote prune --dry-run origin
# if you delete remote branch refs.
git remote prune origin
##################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment