[ GIT ] GIT tip : A simple .gitconfig file

简介:

reference : http://fle.github.io/git-tip-a-simple-gitconfig-file.html

As several friends have asked me this, here is my ~/.gitconfig base file.

Nothing special, just a few aliases and some syntax highlighting :).

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
30
31
32
33
34
35
36
[user]
         name = Florent Lebreton
         email = florentlebreton@ free .fr
[color]
         ui = auto
 
[color  "branch" ]
         current = yellow reverse
         local  = yellow
         remote = green
 
[color  "diff" ]
         meta = yellow bold
         frag = magenta bold
         old = red bold
         new = green bold
         whitespace = red reverse
 
[color  "status" ]
         added = yellow
         changed = green
         untracked = cyan
 
[core]
         whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
 
[ alias ]
         st = status
         ci = commit
         br = branch
         co = checkout
         df  diff
         dc  diff  --cached
         lg = log -p
         pr  = pull --rebase
         gr = log --all --graph --decorate --oneline

 

分类:  Git
本文转自demoblog博客园博客,原文链接http://www.cnblogs.com/0616--ataozhijia/p/8034042.html如需转载请自行联系原作者

demoblog
相关文章
|
缓存 开发工具 git
报错:Git上传代码报错 will not add file alias already exists in index
报错:Git上传代码报错 will not add file alias already exists in index
608 0
|
9月前
|
开发工具 git
git 使用之remote: File [4e21e71a555febaa4dfaaa05cf7eeb606ea96ae2] size 104.090MB, exceeds quota 100MB remote: Please remove the file[s] from history and try again 报错如何解决-优雅草卓伊凡
git 使用之remote: File [4e21e71a555febaa4dfaaa05cf7eeb606ea96ae2] size 104.090MB, exceeds quota 100MB remote: Please remove the file[s] from history and try again 报错如何解决-优雅草卓伊凡
717 3
git 使用之remote: File [4e21e71a555febaa4dfaaa05cf7eeb606ea96ae2] size 104.090MB, exceeds quota 100MB remote: Please remove the file[s] from history and try again 报错如何解决-优雅草卓伊凡
|
Shell 网络安全 开发工具
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
|
开发工具 git
unable to index file ‘~$git提交版本号.xlsx‘
unable to index file ‘~$git提交版本号.xlsx‘
|
开发工具 git
git报错 Unable to create ‘D:/project/xxx/.git/index.lock‘: File exists.
git报错 Unable to create ‘D:/project/xxx/.git/index.lock‘: File exists.
1403 1
|
开发工具 git
Git冲突:# If this is not correct, please remove the file # .git/MERGE_HEAD
Git冲突:# If this is not correct, please remove the file # .git/MERGE_HEAD
187 0
Git冲突:# If this is not correct, please remove the file # .git/MERGE_HEAD
|
开发工具 git
error: could not lock config file .git/config: Permission denied/Command failed with exit 255
error: could not lock config file .git/config: Permission denied/Command failed with exit 255
826 0
|
开发工具 git
.git file too large question resolve解决方法
.git file too large question resolve解决方法
|
Linux 开发工具 git
【Git】解决:E:/**/.git/index.lock': File exists
【Git】解决:E:/**/.git/index.lock': File exists
510 0
|
开发工具 git Python
Git安装Kivy出现Fatal Error: GLES2/gl2.h: No such file or directory
Git安装Kivy出现Fatal Error: GLES2/gl2.h: No such file or directory
259 0