Created
February 28, 2024 18:41
-
-
Save wolf128058/d6f462fa93b3b8c47d2e2fa8b2d93f54 to your computer and use it in GitHub Desktop.
Set my favourite git-aliases
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
#!/bin/bash | |
git config --global alias.pushhash '!f() { branch=$(git rev-parse --abbrev-ref HEAD); git push $1 $2:$branch; }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment