Skip to content

Instantly share code, notes, and snippets.

@ayr-ton
Created March 25, 2020 18:38
Show Gist options
  • Save ayr-ton/a7070989de84a8dc497e636e2a7281b2 to your computer and use it in GitHub Desktop.
Save ayr-ton/a7070989de84a8dc497e636e2a7281b2 to your computer and use it in GitHub Desktop.
git checkout development
git reset --soft HEAD~1
git stash
git fetch origin
git reset --hard origin/development
git stash pop
git add .
git commit -m ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment