aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukma Wardana <hey@swardana.com>2020-11-10 10:26:24 +0700
committerSukma Wardana <hey@swardana.com>2020-11-10 10:26:24 +0700
commited4684a934f306e1397fc04b628ee9ce4cfedfdb (patch)
tree24afd44f11d2d11d8652386aff0d07d753d802a7
parent602b69b5abd8f89312570325724bacd53ac64f24 (diff)
downloaddotfiles-ed4684a934f306e1397fc04b628ee9ce4cfedfdb.tar.gz
dotfiles-ed4684a934f306e1397fc04b628ee9ce4cfedfdb.zip
Add gitconfig
Signed-off-by: Sukma Wardana <hey@swardana.com>
-rw-r--r--CHANGELOG1
-rw-r--r--gitconfig61
2 files changed, 62 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 1ff2dce..89bc1f1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -10,3 +10,4 @@ and this project adheres to https://semver.org/spec/v2.0.0.html.
- Add aliases.
- Add bash run commands and profile.
- Add vimrc.
+- Add gitconfig.
diff --git a/gitconfig b/gitconfig
new file mode 100644
index 0000000..4b26313
--- /dev/null
+++ b/gitconfig
@@ -0,0 +1,61 @@
+# Copyright 2020 Sukma Wardana <hey@swardana.com>
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# Copy this file to home directory.
+# cp gitconfig ~/.gitconfig
+#
+
+[user]
+ name = Sukma Wardana
+ email = hey@swardana.com
+ signingkey = 7BB2539F
+[core]
+ editor = vim
+ pager = less -FRX
+ excludesfile = ~/.gitignore
+ autocrlf = input
+[color]
+ ui = auto
+[color "branch"]
+ current = yellow bold
+ local = green bold
+ remote = cyan bold
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+ whitespace = red reverse
+[color "status"]
+ added = green bold
+ changed = yellow bold
+ untracked = red bold
+[diff]
+ tool = vimdiff
+[difftool]
+ prompt = false
+[alias]
+ cm = commit -s -m
+ mrg = merge -s
+ tg = tag -s
+ ammend = commit --amend
+ ammended = commit --amend --no-edit -s
+ l = log --oneline
+ lg = log --oneline --graph --decorate
+ lgs = log --show-signature -1