Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 304 Bytes

index.md

File metadata and controls

20 lines (13 loc) · 304 Bytes

git reset-to-upstream

Reset commits back to the upstream branch

Git alias:

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

Example:

git reset-to-upstream

See how to use this alias and related ones: