Skip to content

Instantly share code, notes, and snippets.

@pawelrubin
Created August 23, 2022 08:55
Show Gist options
  • Save pawelrubin/9ba9e750a88c0781a388c44759e13058 to your computer and use it in GitHub Desktop.
Save pawelrubin/9ba9e750a88c0781a388c44759e13058 to your computer and use it in GitHub Desktop.
Reset current local branch to its remote state
[alias] rr = !git branch --show-current | xargs -I{} git reset --hard origin/{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment