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

Add buttons to revert/drop commits #106

Open
dserv-nh opened this issue Mar 28, 2024 · 1 comment · May be fixed by #109
Open

Add buttons to revert/drop commits #106

dserv-nh opened this issue Mar 28, 2024 · 1 comment · May be fixed by #109

Comments

@dserv-nh
Copy link

dserv-nh commented Mar 28, 2024

When you change something via the panel but don't want to push it you currently have to use the command line to drop the commit (e.g. via git reset --hard HEAD~1 to undo the last commit)

image

I think it would be a great addition to add either a "Restore from remote" button or better yet a "Drop commit" button for all commits that are not pushed yet.

I can provide a PR for that but I want to hear a little bit of feedback on this first

@thathoff
Copy link
Owner

thathoff commented Apr 2, 2024

I actually planned to integrate something like this. Dropping a commit might need to make it more complicated as you need to check if you only revert commits that have not been pushed to remote yet or you need to allow force push to remote. So just reverting to the remote HEAD might be easier.

Nevertheless: PRs are very welcome! :)

@dserv-nh dserv-nh linked a pull request Jun 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants