Skip to content

Files

Latest commit

d150cec · May 21, 2022

History

History

git-undo-to-upstream

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
Jan 11, 2022

README.md

git undo-to-upstream

Undo commits back to the upstream branch

Git alias:

undo-to-upstream = !git reset --hard $(git upstream-branch)

Example:

git undo-to-upstream

See how to use this alias and related ones: