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

renku undo command #440

Closed
ciyer opened this issue Mar 6, 2019 · 1 comment · Fixed by #2426
Closed

renku undo command #440

ciyer opened this issue Mar 6, 2019 · 1 comment · Fixed by #2426

Comments

@ciyer
Copy link

ciyer commented Mar 6, 2019

Is your feature request related to a problem? Please describe.
Undoing the effect of renku commands in the repository is tedious. It would nice if this were simpler.

Describe the solution you'd like
Add a command renku undo [--force]:

Undo the last renku operation

  • if working dir is dirty, ask user to stash changes or clean
  • if the last commit was not a renku operation, fail with a message that undo can only undo renku operations
  • if the last commit has been pushed to its tracking branch (assuming this is easy to detect), fail unless the force flag is turned on.
  • if all sanity checks pass, reset HEAD to HEAD~1 and clean working dir.

Describe alternatives you've considered
Do the same operation by hand.

@jirikuncar
Copy link
Contributor

duplicate #338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants