Skip to content

Instantly share code, notes, and snippets.

@johnarok
Last active December 21, 2018 15:12
Show Gist options
  • Save johnarok/eba74861bfa8828ece169d73790a8ef9 to your computer and use it in GitHub Desktop.
Save johnarok/eba74861bfa8828ece169d73790a8ef9 to your computer and use it in GitHub Desktop.
git cheatsheet

clean workspace

git clean -df
git reset --hard

pull PR branch

git fetch origin pull/123/head:pr-123
git checkout pr-123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment