.gitconfig
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Sep 2021 23:32:53 +0300
changeset 994 247f27cfcf68
parent 973 277ccd286936
child 996 17158fb949a8
permissions -rw-r--r--
As of ~/.bashrc having space prefixed exclude pattern in HISTIGNORE no need for dedicated file, just add a symlink!

# -*- mode: conf -*-

[user]
name = Oleksandr Gavenko
email = gavenkoa@gmail.com

[alias]
br = branch
ci = commit
co = checkout
cp = cherry-pick
graph = log --graph --oneline --decorate
info = config --list
pop = !git stash apply && git stash clear
sb = show-branch
st = status
staged = diff --cached
summary = log --oneline
tags = tag -n1 -l
w = whatchanged
glog = log --graph --exclude=refs/heads/*.stgit --exclude=refs/patches/* --exclude=refs/stash --all

[core]
whitespace=-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
autocrlf = input
safecrlf = warn
eol = lf
filemode = false

[apply]
# fix/strip/nowarn
# whitespace = strip

[color]
pager = true
ui = auto

[diff]
context = 5
# Makes the diff much shorter when moving or copying files.
renames = copy

# The number of files to consider when performing the copy/rename
# detection; equivalent to the git diff option -l.
# renamelimit = 0

[merge]
conflictstyle = diff3

[log]
date = iso
follow = true

[push]
# Push only current brunch.
default = simple

[pull]
ff = only

[rerere]
# Reuse Recorded Resolution. Keeps database of manually resolved conflicts.
enabled = true