Skip to content

Commit 9b4717e

Browse files
committed
Add git-unpushed alias
1 parent d9d7b23 commit 9b4717e

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
@@ -156,6 +156,7 @@ Here are some helpful aliases for your `~/.gitconfig`
156156
| `ahead-of-master = log --oneline origin/master..HEAD` | Show commits that haven't made it to master yet |
157157
| `fetch-pull-requests = fetch origin '+refs/pull/*/head:refs/remotes/origin/pull/*'` | fetch pull requests from github so you can 'git checkout pull/123' and test them locally |
158158
| `roots = log --all --oneline --decorate --max-parents=0` | Show the roots |
159+
| `unpushed = log @{u}..` | Show which commits are safe to amend/rebase |
159160
| `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 |
160161

161162
## Other useful git stuff

0 commit comments

Comments
 (0)