Skip to content

Instantly share code, notes, and snippets.

@john-auld
Last active April 16, 2019 12:52
Show Gist options
  • Save john-auld/3594f2d4cab19f9202a72807f3dd17c5 to your computer and use it in GitHub Desktop.
Save john-auld/3594f2d4cab19f9202a72807f3dd17c5 to your computer and use it in GitHub Desktop.
Useful git commands

check if local branch is up to date

git remote show origin

tidy up local branches that have been deleted from the origin

git fetch --prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment