Skip to content

Commit da40ca2

Browse files
committed
Add roots alias
1 parent 9582e0a commit da40ca2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ Here are some helpful aliases for your `~/.gitconfig`
154154
| alias | Description |
155155
| ----- | ----------- |
156156
| `ahead-of-master = log --oneline origin/master..HEAD` | Show commits that haven't made it to master yet |
157+
| `roots = log --all --oneline --decorate --max-parents=0` | Show the roots |
157158
| `wip = rebase -i @{u}` | Starts an interactive rebase of all the commits you haven't pushed yet. Handy for collapsing a bunch of WIP snapshots into logical commits before pushing, without having to worry about accidentally squashing a commit someone else has already referred to |
158159

159160
## Other useful git stuff

0 commit comments

Comments
 (0)