Erich Smith | 17aaa9c | 2012-05-21 23:52:47 -0400 | [diff] [blame] | 1 | cite 'about-alias' |
| 2 | about-alias 'common git abbreviations' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 3 | |
| 4 | # Aliases |
Mark Szymanski | 479bdf2 | 2010-10-15 22:20:43 -0500 | [diff] [blame] | 5 | alias gcl='git clone' |
Robert R Evans | 22d9179 | 2010-10-10 09:45:32 -0700 | [diff] [blame] | 6 | alias ga='git add' |
| 7 | alias gall='git add .' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 8 | alias g='git' |
zerobearing2 | 0cd8b40 | 2010-10-07 18:13:57 -0700 | [diff] [blame] | 9 | alias get='git' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 10 | alias gst='git status' |
| 11 | alias gs='git status' |
Mark Szymanski | 5ec52df | 2010-10-24 08:57:01 -0500 | [diff] [blame] | 12 | alias gss='git status -s' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 13 | alias gl='git pull' |
| 14 | alias gup='git fetch && git rebase' |
| 15 | alias gp='git push' |
Robert R Evans | b110de4 | 2010-10-12 08:37:17 -0700 | [diff] [blame] | 16 | alias gpo='git push origin' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 17 | alias gdv='git diff -w "$@" | vim -R -' |
| 18 | alias gc='git commit -v' |
| 19 | alias gca='git commit -v -a' |
Mark Szymanski | 6ffba72 | 2010-12-20 18:08:01 -0600 | [diff] [blame] | 20 | alias gci='git commit --interactive' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 21 | alias gb='git branch' |
| 22 | alias gba='git branch -a' |
| 23 | alias gcount='git shortlog -sn' |
| 24 | alias gcp='git cherry-pick' |
zerobearing2 | 3802bcc | 2010-10-06 17:42:29 -0700 | [diff] [blame] | 25 | alias gco='git checkout' |
| 26 | alias gexport='git archive --format zip --output' |
Robert R Evans | e2505ee | 2010-10-13 08:45:12 -0700 | [diff] [blame] | 27 | alias gdel='git branch -D' |
John Schulz | 760cc8b | 2010-11-11 12:45:32 -0500 | [diff] [blame] | 28 | alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master' |
Florian Baumann | 36438fe | 2010-12-28 13:00:44 +0100 | [diff] [blame] | 29 | alias gll='git log --graph --pretty=oneline --abbrev-commit' |
Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 30 | |
Robert R Evans | c9da086 | 2010-10-06 17:27:55 -0700 | [diff] [blame] | 31 | case $OSTYPE in |
| 32 | linux*) |
| 33 | alias gd='git diff | vim -R -' |
| 34 | ;; |
| 35 | darwin*) |
| 36 | alias gd='git diff | mate' |
| 37 | ;; |
| 38 | darwin*) |
| 39 | alias gd='git diff' |
| 40 | ;; |
| 41 | esac |