We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f2f79 commit 26f2b66Copy full SHA for 26f2b66
.gitconfig
@@ -85,6 +85,9 @@ undo = !git reset HEAD~1 --mixed
85
undo-amended = !git reset --soft HEAD@{1}
86
top = !git log --format=format:%an | sort | uniq -c | sort -r | head -n 20
87
88
+# Fetches all the remotes and resets the current local branch to its upstream
89
+reset-branch = !git fetch --all && git reset --hard @{u}
90
+
91
# from trevor bramble https://twitter.com/TrevorBramble/status/774292970681937920
92
alias=!git config -l | grep ^alias | cut -c 7- | sort
93
0 commit comments