Skip to content

Instantly share code, notes, and snippets.

@ryumada
Last active September 27, 2021 09:22
Show Gist options
  • Save ryumada/e21a8cb4428ae7fa417222a13b2a251c to your computer and use it in GitHub Desktop.
Save ryumada/e21a8cb4428ae7fa417222a13b2a251c to your computer and use it in GitHub Desktop.
Important git shell commands
# 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