用户home目录下的.gitconfig 和 库文件夹目录下的 .gitignore 示例

.gitconfig文件:

[user]
    name = hzh
    email = 924948@qq.com

[core]
    editor = vi
    quotepath = false
# git config --global core.autocrlf true
autocrlf = true
# git config --global core.whitespace cr-at-eol
whitespace = cr-at-eol
[merge] tool = kdiff3 [mergetool "kdiff3"] #path = E:/playground/softwares/KDiff3/kdiff3.exe keepBackup = false trustExitCode = false [diff] tool = kdiff3 [difftool "kdiff3"] #path = E:/playground/softwares/KDiff3/kdiff3.exe keepBackup = false trustExitCode = false [alias] co = commit br = branch ch = checkout st = status last = log -1 HEAD [color] diff = auto status = auto branch = auto [push] default = matching

 

.gitignore文件:

#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
[Dd]ebug*/
*.lib
*.sbr
obj/
out/ [Rr]elease*/ _ReSharper*/ [Tt]est[Rr]esult*
[Bb]in
/gen
*.class
*.o
*.so
# *.so.*
*~
*.orig
/proguard

 

posted @ 2015-08-23 22:49  微信公众号--共鸣圈  阅读(426)  评论(0编辑  收藏  举报