Skip to content

Instantly share code, notes, and snippets.

@pholat
Created November 17, 2021 09:08
Show Gist options
  • Save pholat/c1669ac3e00261c826348159bee43ad4 to your computer and use it in GitHub Desktop.
Save pholat/c1669ac3e00261c826348159bee43ad4 to your computer and use it in GitHub Desktop.
the most time saving configurations in my .gitconfig file
[core]
autocrlf = false
[alias]
# lists user branches in last time ordered matter - useful to manage multiple branches at once
brtime = for-each-ref --sort=committerdate refs/heads/ --format='%(color: red)%(committerdate:short) %(color: cyan)%(refname:short)'
# list all branches including remotes in timed matter - usefull to verify branches older than `x`
brtime-all = for-each-ref --sort=committerdate --format='%(color: red)%(committerdate:short) %(color: white)%(authorname) %(color: cyan)%(refname:short)'
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment