Git: New aliases.

This commit is contained in:
Artem Sapegin 2012-12-07 00:55:32 +04:00
parent 8e55bea7c4
commit 7d9574d664

View File

@ -20,6 +20,7 @@
b = branch b = branch
c = commit c = commit
ca = commit -a ca = commit -a
cm = commit -m
cam = commit -am cam = commit -am
co = checkout co = checkout
d = diff --color-words d = diff --color-words
@ -27,8 +28,9 @@
l = log --graph --pretty=format:'%C(magenta)%h%C(blue)%d%Creset %s %C(blue bold)- %an, %ar%Creset' l = log --graph --pretty=format:'%C(magenta)%h%C(blue)%d%Creset %s %C(blue bold)- %an, %ar%Creset'
ll = log --stat --abbrev-commit ll = log --stat --abbrev-commit
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $2 >> .gitignore ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $2 >> .gitignore
this = !git init && git add . && git commit -m \"initial commit\" this = !git init && git add . && git commit -m \"Initial commit.\"
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend append = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
undo = reset --mixed HEAD^
[push] [push]
default = current default = current