I alias 'git recent' to: git branch --sort=-committerdate -v It gives me the following output (first line for not actually included): [branch name] [hash] [commit message header] move-radio-and-checkbox-hints-up 9dff690 Move the hints belonging to radios/checkboxes up update-rubocop 8cace1f Update rubocop and pry, fix some new offences fix-remaining-injected-content-placement 48dc51d Reorder elements of other inputs
This is much better as it’s portable and doesn’t cheat by assuming awk/grep/etc are available.
Git alias for printing recently-used branches
21–25 of 25 posts
Re: Git alias for printing recently-used branches
#22https://github.com/whalesalad/dotfiles/blob/master/zsh/git.z...
Re: Git alias for printing recently-used branches
#23Earlier quoted context omitted.
This is much better as it’s portable and doesn’t cheat by assuming awk/grep/etc are available.
Honest question, what kind of environments are you working in where you don't / can't have these?
It wouldn’t surprise me if windows cmd is the most common environment for git on command line, since windows is the most common OS among developers (and git-bash is terrible).
Re: Git alias for printing recently-used branches
#24I had idea to add something similar as tab completion to posh-git module for Powershell. Sadly it was not merged (is posh-git dead?) https://github.com/dahlbyk/posh-git/pull/641 I wonder if something similar can be done in bash? By default bash doesn't "cycle" through possible completion but just display the list. Still, I guess it would be usefull to display last used branches first.
Re: Git alias for printing recently-used branches
#25https://github.com/bhaak/dotfiles/blob/master/git/git-overvi...
It has been so useful to me that I think I should extract it from my dotfiles repository and give it its own repository.
Or reimplement it in Rust as a introductory programming project.