Skip to content

Commit

Permalink
feat: configure git reset-branch alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Dec 20, 2024
1 parent d9f2f79 commit 26f2b66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ undo = !git reset HEAD~1 --mixed
undo-amended = !git reset --soft HEAD@{1}
top = !git log --format=format:%an | sort | uniq -c | sort -r | head -n 20

# Fetches all the remotes and resets the current local branch to its upstream
reset-branch = !git fetch --all && git reset --hard @{u}

# from trevor bramble https://twitter.com/TrevorBramble/status/774292970681937920
alias=!git config -l | grep ^alias | cut -c 7- | sort

Expand Down

0 comments on commit 26f2b66

Please sign in to comment.