Last active
July 7, 2020 14:28
-
-
Save HiroshiHara/e472e25b4d97ba69e12d9c9ea3d7604b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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