Skip to content

Instantly share code, notes, and snippets.

@alittlesliceoftom
Created December 6, 2024 10:31
Show Gist options
  • Save alittlesliceoftom/5f584229643e044244ada855038b03df to your computer and use it in GitHub Desktop.
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.
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
@alittlesliceoftom
Copy link
Author

I particularly like gbranch and gapm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment