Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 299 Bytes

index.md

File metadata and controls

19 lines (13 loc) · 299 Bytes

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: