Add git configuration
This commit is contained in:
parent
d8937634cb
commit
807cd5ed5e
2 changed files with 50 additions and 0 deletions
44
dot_gitconfig
Normal file
44
dot_gitconfig
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
[color]
|
||||||
|
ui = true
|
||||||
|
branch = always
|
||||||
|
status = always
|
||||||
|
interactive = always
|
||||||
|
diff = true
|
||||||
|
[user]
|
||||||
|
name = Maximilian Friedersdorff
|
||||||
|
email = max@friedersdorff.com
|
||||||
|
signingkey = F5E7FCB3
|
||||||
|
[core]
|
||||||
|
editor = vim
|
||||||
|
excludesfile = /home/max/.gitignore
|
||||||
|
[merge]
|
||||||
|
tool = diffuse
|
||||||
|
ff = true
|
||||||
|
[push]
|
||||||
|
default = simple
|
||||||
|
[alias]
|
||||||
|
lg = log --graph --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short
|
||||||
|
hist = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %G? %ad %s %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --date=short
|
||||||
|
struct = log --graph --full-history --all --pretty=format:'%ad %s %Creset %C(yellow)%d%Creset' --date=short --simplify-by-decoration
|
||||||
|
co = checkout
|
||||||
|
ci = commit
|
||||||
|
st = status
|
||||||
|
br = branch
|
||||||
|
df = diff
|
||||||
|
commit = commit -S
|
||||||
|
vh = verify-commit HEAD
|
||||||
|
vc = verify-commit
|
||||||
|
vt = tag -v
|
||||||
|
tag = tag -s
|
||||||
|
t = tag -s
|
||||||
|
alias = "!req=$'\\033[0;31m=\\033[0m'; git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e \"s/\\ /\t$req\\ /\""
|
||||||
|
r = rebase
|
||||||
|
m = merge
|
||||||
|
pa = !git remote | xargs -L1 git push --all
|
||||||
|
[pull]
|
||||||
|
rebase = false
|
||||||
|
[sendemail]
|
||||||
|
smtpserver = mail.friedersdorff.com
|
||||||
|
smtpuser = max
|
||||||
|
smtpencryption = tls
|
||||||
|
smtpserverport = 587
|
||||||
6
dot_gitignore
Normal file
6
dot_gitignore
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[._]*.s[a-w][a-z]
|
||||||
|
[._]s[a-w][a-z]
|
||||||
|
*.un~
|
||||||
|
Session.vim
|
||||||
|
.netrwhist
|
||||||
|
*~
|
||||||
Loading…
Add table
Reference in a new issue