Created
May 15, 2019 14:59
-
-
Save ferranpujolcamins/6b902e9415c416d2cdae7b6f60b8d5c5 to your computer and use it in GitHub Desktop.
git sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git alias to reset --hard the current branch to it's remote tracking branch | |
git config --add alias.sync '!git reset --hard "$(git rev-parse --abbrev-ref --symbolic-full-name @{u})"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment