Last active
September 27, 2021 09:22
-
-
Save ryumada/e21a8cb4428ae7fa417222a13b2a251c to your computer and use it in GitHub Desktop.
Important git shell commands
This file contains hidden or 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
# refresh local branches to remote server | |
git remote update origin --prune | |
# remove cloned branch item | |
# remove staged branch item | |
git rm -rf | |
# remove files in origin after add it to .gitignore | |
# remove cached file in origin | |
git rm --cached file1.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment