jlegrone / git-config

High-level git aliases to improve your workflow
https://jlegrone.github.io/git-config
MIT License
11 stars 3 forks source link

feat(aliases): add warning and --no-user-check flag for undo #36

Open ericrallen opened 3 years ago

ericrallen commented 3 years ago

This prompts the user to rerun git undo with the --no-user-check flag when a different user authored the previous commit.

BREAKING CHANGE: git undo no longer works as expected when a different user authored the previous commit; git undo --no-user-check is required in that case

ISSUES CLOSED: #23

ericrallen commented 3 years ago

Ran into this one the other day when I ran git undo in the wrong branch.