-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_aliases
More file actions
29 lines (28 loc) · 1.89 KB
/
git_aliases
File metadata and controls
29 lines (28 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Put the following in your $HOME/.gitconfig:
## [include]
## path = .git_aliases
[alias]
# borrowed from Paul Chiconski, try these out
pc-lgf = log -C -M --follow --graph --date=short --pretty=format:'%C(blue)%cd %C(magenta)| %C(blue)%h %C(magenta)| %Creset%s %C(yellow)<%an>%C(red)%d'
pc-l = log --name-status --relative
pc-d = diff --ignore-space-at-eol -b
pc-dw = diff --ignore-space-at-eol -b --word-diff=color
pc-dc = diff --ignore-space-at-eol -b --cached
pc-s = show -w -b --stat -p
pc-st = status
pc-stu = status --untracked-files=all
pc-tree = log --graph --date=short --pretty=format:'%C(blue)%cd %C(magenta)| %C(blue)%h %C(magenta)| %C(reset)%s %C(yellow)<%an>%C(red)%d'
# my legacy stuff
log1 = log --abbrev=8 --abbrev-commit --date=short --pretty=format:'%h %ad %s'
log2 = log --pretty=oneline
# my newer stuff
diffb = diff --ignore-space-at-eol -b
tree = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold green)(%ad)%C(reset) %C(dim white)%s%C(reset) %C(red)%an%C(reset) %C(bold yellow)%d%C(reset)'
tree1 = log --graph --abbrev-commit --decorate --date=relative --first-parent --format=format:'%C(bold blue)%h%C(reset) %C(bold green)(%ad)%C(reset) %C(dim white)%s%C(reset) %C(red)%an%C(reset) %C(bold yellow)%d%C(reset)'
tree2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ad)%C(reset)%n'' %C(red)%an <%ae>%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset)'
logs = log --stat -p --relative --ignore-space-at-eol -b
root = !pwd
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
stashlist = !git --no-pager stash list
stashlistp = -c stash.pager='less -x 5,9' stash list
subsr = submodule update --init --recursive