Created
December 6, 2024 10:31
-
-
Save alittlesliceoftom/5f584229643e044244ada855038b03df to your computer and use it in GitHub Desktop.
Preferred set of git alias's in my cli. Various ones to turn typos to be interpreted as "git" plus a few shorter helps to automate regular commiting.
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
g=git $* | |
gap=git add -u $T git com -m tweak $T git push | |
gapm=git add -u $T git com -m $* $T git push | |
gbranch=git for-each-ref --sort=-committerdate refs/heads/ --format="%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))" --count 10 | |
gcp=git commit -m "$*" | |
gdel=git branch -d $* | |
gi=git | |
gl=git log --oneline --all --graph --decorate $* | |
gti=git $* | |
gut=git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I particularly like gbranch and gapm!