8000 Idea: `zbg undo` · Issue #20 · chshersh/zbg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Idea: zbg undo #20
Open
Open
@Drarig29

Description

@Drarig29

I think I don't need it anymore, but when anyone starts using git, a thing that we would really want is a Ctrl+Z, haha 😁

So the idea would be to have a zbg undo command that looks at the current state of git and aborts it when it's supported, or undoes the commit otherwise.

  • If in rebase, it would do git rebase --abort (grba)
  • If in merge, it would do git merge --abort (gma)
  • If in cherry-pick, it would do git cherry-pick --abort
  • ...insert every command that supports --abort
  • The fallback could be to undo the latest commit: git reset --soft HEAD~1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0