Created
September 13, 2021 15:01
-
-
Save AurelienLoyer/3b267f755bb62a1d618ebcc938e89537 to your computer and use it in GitHub Desktop.
Git alias
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
s = status -s | |
dammit = !BRANCH=$(git rev-parse --abbrev-ref HEAD) \ | |
&& git fetch origin $BRANCH \ | |
&& git reset --hard origin/$BRANCH | |
find-branch = !sh -c \"git branch -a | grep -v remotes | grep $1 | head -n 1 | xargs git checkout\" | |
pushf = push --force-with-lease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment