Skip to content

Instantly share code, notes, and snippets.

@hectorj
Created August 27, 2018 14:47
Show Gist options
  • Select an option

  • Save hectorj/79ba2958e75c1d3a47639dacb8c99bdf to your computer and use it in GitHub Desktop.

Select an option

Save hectorj/79ba2958e75c1d3a47639dacb8c99bdf to your computer and use it in GitHub Desktop.
`git rebase` du pauvre
#!/usr/bin/env bash
set -eu
git fetch origin
git merge origin/master
git reset origin/master
git add --all
git commit -m "Commit tout beau tout propre"
git push --force-with-lease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment