Merge pull request #90 from p-v/master

Show all local branches ordered by recency
This commit is contained in:
hemanth.hm 2016-06-16 17:49:21 +05:30 committed by GitHub
commit d5ca8fabcc
2 changed files with 9 additions and 0 deletions

View File

@ -114,6 +114,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits)
* [Turn off git colored terminal output](#turn-off-git-colored-terminal-output)
* [specific color settings](#specific-color-settings)
* [Show all local branches ordered by recent commits](#show-all-local-branches-ordered-by-recent-commits)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -787,5 +788,10 @@ git config --global color.ui false
git config --global <specific command e.g branch, diff> <true, false or always>
```
## Show all local branches ordered by recent commits
```sh
git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -345,4 +345,7 @@
},{
"title": "specific color settings",
"tip": "git config --global <specific command e.g branch, diff> <true, false or always>"
},{
"title": "Show all local branches ordered by recent commits",
"tip": "git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/"
}]