mirror of
https://github.com/namibia/tips.git
synced 2025-02-02 19:48:24 +00:00
Merge pull request #90 from p-v/master
Show all local branches ordered by recency
This commit is contained in:
commit
d5ca8fabcc
@ -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)
|
||||
|
||||
<!-- Don’t 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/
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -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/"
|
||||
}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user