mirror of
https://github.com/git-tips/tips.git
synced 2024-09-22 00:01:00 +02:00
Add tip to show recently updated branches
This commit is contained in:
parent
dec07c0170
commit
e22b7b17d5
|
@ -113,6 +113,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)
|
* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits)
|
||||||
* [Turn off git colored terminal output](#turn-off-git-colored-terminal-output)
|
* [Turn off git colored terminal output](#turn-off-git-colored-terminal-output)
|
||||||
* [specific color settings](#specific-color-settings)
|
* [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>. -->
|
<!-- 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 -->
|
<!-- @doxie.inject end toc -->
|
||||||
|
@ -781,5 +782,10 @@ git config --global color.ui false
|
||||||
git config --global <specific command e.g branch, diff> <true, false or always>
|
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>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
|
|
@ -342,4 +342,7 @@
|
||||||
},{
|
},{
|
||||||
"title": "specific color settings",
|
"title": "specific color settings",
|
||||||
"tip": "git config --global <specific command e.g branch, diff> <true, false or always>"
|
"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…
Reference in New Issue
Block a user