7 ms·
I have his "git recent" alias, and then in .bashrc alias co='select br in $(git recent); do git co $br; break; done' so when I type "co" at the command pr
by nicwolff 9y ago
I have his "git recent" alias, and then in .bashrc
alias co='select br in $(git recent); do git co $br; break; done'
so when I type "co" at the command prompt I get a numbered menu of branches in the order I last checked them out, and can just type a branch's number and hit return to check it out again.
- netcraft 9y agoI use a different version of git-recent that Paul Irish wrote (https://github.com/paulirish/git-recent https://github.com/paulirish/git-recent) but thats pretty slick - thanks for sharing. Might have to switch - although sometimes its nice to also have the context.