Skip to content

Instantly share code, notes, and snippets.

@rafaelgotts
Created November 14, 2018 18:03
Show Gist options
  • Select an option

  • Save rafaelgotts/7220b71a22a946757eef2653d7a0ab38 to your computer and use it in GitHub Desktop.

Select an option

Save rafaelgotts/7220b71a22a946757eef2653d7a0ab38 to your computer and use it in GitHub Desktop.
Git commands for weak memmories
git fetch -pt - makes git fetch all of your origins with two conditions:
-p - deletes all unnused branchs
-t - fetch all tags
git rebase origin/master - makes rebase from origin upstream, ignoring local one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment