Last active
January 1, 2016 18:19
-
-
Save CarlRevell/8183428 to your computer and use it in GitHub Desktop.
Useful Git commands I've used and forgotten...
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
# shows changes required to get from master branch to recyclingMicrosite; effectively what’s in recyclingMicrosite that’s NOT in master. | |
git diff --name-status master..recyclingMicrosite | |
# The triple-dot syntax ... shows what is in either master OR recyclingMicrosite but not both | |
# typically these are commits since recyclingMicrosite was branched from master. | |
git diff --name-status master...recyclingMicrosite | |
# remove the recyclingMicrosite branch from the repo | |
git branch –d recyclingMicrosite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment