Skip to content

Instantly share code, notes, and snippets.

@CarlRevell
Last active January 1, 2016 18:19
Show Gist options
  • Save CarlRevell/8183428 to your computer and use it in GitHub Desktop.
Save CarlRevell/8183428 to your computer and use it in GitHub Desktop.
Useful Git commands I've used and forgotten...
# 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