Skip to content

Commit b0304c7

Browse files
authored
Merge pull request #23 from unixorn/add-external-resources
Add some useful git aliases to README.md
2 parents 489ac24 + 8b10a09 commit b0304c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ If you aren't using any zsh frameworks, or if you're a bash user, do the followi
197197
| `git-wtf` | William Morgan <wmorgan at the masanjin dot nets> | `git-wtf` displays the state of your repository in a readable, easy-to-scan format. It's useful for getting a summary of how a branch relates to a remote server, and for wrangling many topic branches. |
198198
| `github-open` | Ryan Tomayko's [dotfiles](http://github.com/rtomayko/dotfiles) | |
199199

200+
## Useful git aliases
201+
202+
Here are some helpful aliases for your `~/.gitconfig`
203+
204+
| alias | Description |
205+
| ----- | ----------- |
206+
| `ahead-of-master = log --oneline origin/master..HEAD` | Show commits that haven't made it to master yet |
207+
| `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 |
208+
200209
## Contributing
201210

202211
* Please include an entry in the credits section of README.md for any scripts in your PRs so authors get their work credited correctly.

0 commit comments

Comments
 (0)