add GIT configuration
This commit is contained in:
parent
7f8cc1f011
commit
2258a1256d
2 changed files with 87 additions and 0 deletions
57
.gitconfig
Normal file
57
.gitconfig
Normal file
|
@ -0,0 +1,57 @@
|
|||
[user]
|
||||
name = Knut Ahlers
|
||||
email = knut@ahlers.me
|
||||
signingkey = D34BE99E
|
||||
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
warnAmbiguousRefs = false
|
||||
excludesfile = /Users/luzifer/.gitignore_global
|
||||
|
||||
[color]
|
||||
diff = auto
|
||||
status = auto
|
||||
branch = auto
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[branch]
|
||||
autosetuprebase = always
|
||||
|
||||
[diff]
|
||||
renames = true
|
||||
|
||||
[push]
|
||||
default = tracking
|
||||
gpgSign = if-asked
|
||||
|
||||
[alias]
|
||||
changes=diff --name-status -r
|
||||
st = status
|
||||
ci = commit
|
||||
br = branch
|
||||
co = checkout
|
||||
df = diff
|
||||
lg = log -p
|
||||
cues = blame
|
||||
elog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
|
||||
starecopu = "!sh -c 'git stash && git pull --rebase && git stash pop && git commit -am \"$0\" && git push'"
|
||||
spps = "!sh -c 'git stash && git pull --rebase && git push && git stash pop'"
|
||||
pp = "!sh -c 'git pull --rebase && git push'"
|
||||
squash = !sh -c 'git commit -m \"squash! $(git log -1 --format='\\''%s'\\'' $@)\"' -
|
||||
ri = rebase --interactive --autosquash
|
||||
lg = "log --color --graph --pretty=format:'%Cred%h%Creset [%G?]%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
|
||||
sign-rebase = "!GIT_SEQUENCE_EDITOR='sed -i -re s/^pick/e/' sh -c 'git rebase -i $1 && git commit --amend -S --no-edit && while git rebase --continue; do git commit --amend -S --no-edit; done' -"
|
||||
|
||||
[receive]
|
||||
denyNonFastForwards = true
|
||||
|
||||
[rerere]
|
||||
enabled = 1
|
||||
|
||||
[gpg]
|
||||
program = gpg2
|
30
.gitignore_global
Normal file
30
.gitignore_global
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Compiled source #
|
||||
###################
|
||||
*.class
|
||||
*.dll
|
||||
*.exe
|
||||
*.o
|
||||
*.so
|
||||
|
||||
# Logs and databases #
|
||||
######################
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
# OS generated files #
|
||||
######################
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
Icon?
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
# IDE specific files #
|
||||
#####################
|
||||
.idea
|
||||
|
||||
.*.swp
|
Loading…
Reference in a new issue