Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (42 sloc) 1.461 kb
28822f9 Ryan Tomayko add a bunch of aliases by default
authored
1 #!/bin/bash
2 # These are the standard set of aliases enabled by default in all
3 # git-sh sessions. Aliases defined in the gitconfig [alias] section override
4 # these.
5
6 gitalias a='git add'
7 gitalias b='git branch'
8 gitalias c='git checkout'
9 gitalias d='git diff'
10 gitalias f='git fetch --prune'
11 gitalias k='git cherry-pick'
12 gitalias l='git log --pretty=oneline --abbrev-commit'
13 gitalias n='git commit --verbose --amend'
14 gitalias r='git remote'
15 gitalias s='git commit --dry-run --short'
16 gitalias t='git diff --cached'
17
18 # git add and the staging area
19 gitalias a='git add'
20 gitalias aa='git add --update' # mnemonic: "add all"
21 gitalias stage='git add'
22 gitalias ap='git add --patch'
23 gitalias p='git diff --cached' # mnemonic: "patch"
24 gitalias unstage='git reset HEAD'
25
26 # commits and history
27 gitalias ci='git commit --verbose'
28 gitalias ca='git commit --verbose --all'
29 gitalias amend='git commit --verbose --amend'
30 gitalias n='git commit --verbose --amend'
31 gitalias k='git cherry-pick'
32 gitalias re='git rebase --interactive'
33 gitalias pop='git reset --soft HEAD^'
34 gitalias peek='git log -p --max-count=1'
35
36 # git fetch
37 gitalias f='git fetch'
38 gitalias pm='git pull' # mnemonic: pull merge
39 gitalias pr='git pull --rebase' # mnemonic: pull rebase
40
41 # git diff
42 gitalias d='git diff'
43 gitalias ds='git diff --stat' # mnemonic: "diff stat"
44
45 # git reset
46 gitalias hard='git reset --hard'
47 gitalias soft='git reset --soft'
c61473f Ryan Tomayko builtin alias scrap = git checkout HEAD ...
authored
48 gitalias scrap='git checkout HEAD'
Something went wrong with that request. Please try again.