Last active
August 29, 2015 14:03
-
-
Save lzcabrera/7188eab355c8c72265a4 to your computer and use it in GitHub Desktop.
useful git commands I tend to forget
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 command to update remote origin | |
git remote set-url origin [[*.git]] | |
git push origin --delete [branch-name] | |
# If you are working in a branch that is/will become a pull-request against master, you can rebase against your master branch. Make sure it is up to date | |
(my-branch)$ git rebase -i master | |
git remote update --prune | |
git gc --prune=now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment