Commit 8a10b2fe authored by Tim McNamara's avatar Tim McNamara

Add git-branch-tips.md

parent d2c9a295
To sort your branches by when they stared, use this command:
```plain
git branch --sort=creatordate
```
More generally, `git branch --sort=<key> [--sort=<key>]` where `key` can be any of the following (via `git help for-each-ref`):
In numeric order:
- objectsize
- authordate
- committerdate
- creatordate
- taggerdate
Other keys return n byte-value order:
- refname
- objecttype
- objectname
- upstream
- push
- HEAD
- color
- align
- creator
- author
- committer
- tagger
- ...
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment