Commenting git aliases.

This commit is contained in:
Rodolphe Breard 2016-07-09 19:20:21 +02:00
parent fc2e3b1c13
commit 49e8fe8430

View file

@ -14,15 +14,28 @@
br = branch br = branch
ci = commit ci = commit
st = status st = status
ls = log --oneline
caa = commit -a --amend -C HEAD
unstage = reset HEAD -- unstage = reset HEAD --
last = log -1 HEAD last = log -1 HEAD
undo = reset --soft HEAD^ undo = reset --soft HEAD^
amend = commit --amend amend = commit --amend
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
;
; http://blogs.atlassian.com/2014/10/advanced-git-aliases/
;
ls = log --oneline
; caa: commit amend append
; Take all uncommitted and un-staged changes currently in the working directory and add them to the previous commit.
caa = commit -a --amend -C HEAD
; bclean: branch clean
; Remove local branches that have already been merged to master.
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f" bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
; new: see new commits
; Displays commits created by the last command (typically after a git pull).
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
[color] [color]
branch = auto branch = auto
diff = auto diff = auto
@ -32,13 +45,13 @@
current = yellow reverse current = yellow reverse
local = yellow local = yellow
remote = green remote = green
[color "diff"] [color "diff"]
meta = yellow bold meta = yellow bold
frag = magenta bold frag = magenta bold
old = red bold old = red bold
new = green bold new = green bold
[color "status"] [color "status"]
added = yellow added = yellow
changed = green changed = green