aboutsummaryrefslogtreecommitdiff
path: root/.config/git
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-10-02 16:06:45 +0200
committerPatrick Spek <p.spek@tyil.nl>2019-10-02 16:06:45 +0200
commitf2a92fac2f79e8f0e67b2f2bd53ef1117a76d257 (patch)
tree8db1fc172a0bbd800eb58ebdc57647d1bfe292f5 /.config/git
parent54ba2fbd7e32431642e6e927b22f12d9487ef402 (diff)
Include git configs
Diffstat (limited to '.config/git')
-rw-r--r--.config/git/config48
-rw-r--r--.config/git/ignore23
2 files changed, 71 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
new file mode 100644
index 0000000..1f4dd13
--- /dev/null
+++ b/.config/git/config
@@ -0,0 +1,48 @@
+[alias]
+ a = add
+ b = branch
+ c = commit
+ ca = commit --amend --reset-author
+ co = checkout
+ cob = checkout -b
+ ct = tag -s
+ #cd = ! cd -- "$(pwd)"
+ d = diff
+ fo = fetch origin
+ l = log --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(6)%ad %C(3)%h%Creset %s %C(7)by %C(2)%ae%C(7):%C(5)%G?'
+ lg = log --graph --abbrev-commit --decorate --date=relative --all
+ p = push
+ pa = push-all
+ prev = ! git show "HEAD:$1"
+ r = rebase --preserve-merges -i
+ ra = commit --amend --no-edit -a
+ rc = rebase --continue
+ s = status -s
+ t = tag
+ tr = for-each-ref --sort=taggerdate --format '%(tag)' refs/tags
+
+[commit]
+ gpgsign = true
+
+[core]
+ pager = less -R
+ excludesfile = ~/.config/git/ignore
+
+[diff]
+ tool = vimdiff
+
+[difftool]
+ prompt = false
+
+[pull]
+ default = current
+ #rebase = true
+
+[push]
+ default = current
+ followTags = true
+
+[user]
+ email = p.spek@tyil.nl
+ name = Patrick Spek
+ signingkey = 1660F6A2DFA75347322A4DC07A6AC285E2D98827
diff --git a/.config/git/ignore b/.config/git/ignore
new file mode 100644
index 0000000..b84abd4
--- /dev/null
+++ b/.config/git/ignore
@@ -0,0 +1,23 @@
+#
+# Misc
+#
+
+# Perl 6 precompilation files
+.precomp
+
+#
+# Editor files
+#
+
+# Comma
+.idea
+.iml
+
+# Emacs
+*~
+.#*
+\#*
+*#
+
+# Vim
+.*.sw?