Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a rollback #6

Open
bkemper opened this issue May 11, 2018 · 0 comments
Open

Support for a rollback #6

bkemper opened this issue May 11, 2018 · 0 comments

Comments

@bkemper
Copy link

bkemper commented May 11, 2018

The use case is I just merged my feature branch to the "develop" branch with finish and for whatever reason, I need to revert my merge.

$  git rollback 273b1f19 push

Under the hood, I think something like this could work.

git checkout develop
git pull origin develop
git revert  --mainline 1 $1
[[ $2 = 'push' ]] && git push origin develop

Extra Credit

  • Support for "master" branch
  • Default SHA to HEAD
  • Restore feature branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant