Add global gitconfig and gitignore
This commit is contained in:
parent
23769cddc9
commit
b7100affa5
2 changed files with 32 additions and 0 deletions
24
git/.gitconfig
Normal file
24
git/.gitconfig
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[user]
|
||||
name = Jonas Müller
|
||||
email = j.mueller@nexus.local
|
||||
[core]
|
||||
editor = nvim
|
||||
autocrlf = input
|
||||
excludesfile = ~/.dotfiles/git/.gitignore_global
|
||||
[push]
|
||||
default = current
|
||||
autoSetupRemote = true
|
||||
[pull]
|
||||
rebase = true
|
||||
[rebase]
|
||||
autoStash = true
|
||||
[diff]
|
||||
tool = nvimdiff
|
||||
[alias]
|
||||
st = status
|
||||
co = checkout
|
||||
br = branch
|
||||
lg = log --oneline --graph --decorate --all
|
||||
undo = reset HEAD~1 --mixed
|
||||
# I don't know why this works but it does
|
||||
fixup = "!f() { git commit --fixup $1 && git rebase -i --autosquash $1~1; }; f"
|
||||
8
git/.gitignore_global
Normal file
8
git/.gitignore_global
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
.DS_Store
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
||||
.idea/
|
||||
__pycache__/
|
||||
.env.local
|
||||
*.log
|
||||
Loading…
Reference in a new issue