feat: 添加全局的 git 忽略文件

This commit is contained in:
2019-12-08 15:19:09 +08:00
parent 6100b609d2
commit 92407c0ce7
3 changed files with 32 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
[user]
name = Laily
email = i@laily.net
[core]
autocrlf = input
quotepath = false
editor = /usr/local/bin/nvim
excludesfile = ~/.dotfile/git/.gitignore
[alias]
merge2 = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f"
au = add -u
co = checkout
cm = commit -m
st = status
br = branch
[push]
default = current
[merge]
tool = vimdiff
+30
View File
@@ -0,0 +1,30 @@
*.a
*.so
_obj
_test
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.exe~
*.test
*.prof
*.rar
*.zip
*.gz
*.psd
*.bmd
*.cfg
*.pptx
*.log
*nohup.out
*settings.pyc
*.sublime-project
*.sublime-workspace
.idea/
.vscode/
.DS_Store
.log