![]() ![]() (%(color:green)%(committerdate:relative)%(color:reset)) %(authorname)' Git for-each-ref -sort=-committerdate refs/heads refs/remotes (%(color:green)%(committerdate:relative)%(color:reset))'Īs suggested in the comments below you can also include remote branches and the author's name. format='%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) Git for-each-ref -sort=-committerdate refs/heads ![]() I was able to reference the previous examples to create something that works best for me. Recentb = "!r() 1' done | ( echo \"ahead|behind||branch|lastcommit|message|author ![]() # ATTENTION: All aliases prefixed with ! run in /bin/sh make sure you use sh syntax, not bash/zsh or whatever count: how many recent branches to show.refbranch: which branch the ahead and behind columns are calculated against.You can put the following snippet in your ~/.gitconfig. # Or using git branch (since version 2.7.0)Īdvanced Usage: git for-each-ref -sort=committerdate refs/heads/ -format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' Use the -sort=-committerdate option of git for-each-ref Īlso available since Git 2.7.0 for git branch: Basic Usage: git for-each-ref -sort=-committerdate refs/heads/ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |