summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-03-27 14:24:48 +0100
committerAhmed Abdelhalim <[email protected]>2021-03-27 14:24:48 +0100
commit2d95a4b0b76e062b01a94dcc3a8db685d5483114 (patch)
treefb46e0b7dc46fa60727226932aa69b5dd32abb18
parent8f0a5293bdc55471d6dc321779c11c9b53d3a496 (diff)
Add global gitconfigs
-rw-r--r--.gitconfig40
1 files changed, 40 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
new file mode 100644
index 0000000..aa5c1fc
--- /dev/null
+++ b/.gitconfig
@@ -0,0 +1,40 @@
+[color]
+ ui = true
+ status = auto
+ branch = auto
+[core]
+ editor = vim
+ excludesfile = ~/.gitignore_global
+[merge]
+ tool = vimdiff
+[user]
+ name = a14m
+ username = a14m
+ signingkey = 7A690E8DFE36C63A99355B1B76296F290BE3A016
+; [branch]
+ ; autosetuprebase = always
+[diff]
+ algorithm = patience
+[alias]
+ st = status
+ br = branch
+ df = diff
+ co = checkout
+ cm = commit --verbose
+ ls = log --oneline --decorate
+ la = log --oneline --decorate --numstat
+ lg = log --oneline --graph
+ ; ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
+ ; fl = log -u
+ ldf = diff --cached HEAD^
+ wdf = diff --color-words --word-diff-regex='[A-z0-9_]+|[^[:space:]]'
+ ; up = "!git remote update -p; git merge --ff-only @{u}"
+[push]
+ default = current
+[pull]
+ rebase = true
+[fetch]
+ prune = true
+[commit]
+ gpgsign = true