Git Alias

今天唐大牛教了些git的命令。顺便把他的git别名也发给我了。啥叫别名,就是

git br
==>
git branch

只需要在home目录下的.gitconfig文件中添加:

1
2
3
4
5
6
7
8
9
[alias]
st = status -s
ci = commit
l = log --oneline --decorate -13
ll = log --oneline --decorate
co = checkout
br = branch
rb = rebase
dci = dcommit

以后就可以使用别名了。

Today, big tang teaches me some git commands. And he gives me his alias of git commands to me. What’s alias? That’s

1
2
3
4
git br
==>
git branch

only write the following code in ~/.gitconfig file.

1
2
3
4
5
6
7
8
9
10
[alias]
st = status -s
ci = commit
l = log --oneline --decorate -13
ll = log --oneline --decorate
co = checkout
br = branch
rb = rebase
dci = dcommit

And now you can use alias of git commands. Try git br