blob: a8e6b81d44e63e8ec3753cb21fb61f0738c07f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# vim:ft=gitconfig
# ~/.gitconfig
# ============================================================================
# This Git configuration contains sane defaults for my workflow.
# I work with Git on Windows and Linux, and some configuations might
# use different locations. This mainly contains the aliases I want
# to keep consistent between machines.
#
# {{/* This file supports Go's text/template language. */}}
[push]
autoSetupRemote = true
default = current
[user]
name = {{ .git_name }}
email = {{ .git_email }}
[alias]
staash = stash --all
trueblame = blame -w -C -C -C
wdiff = diff --word-diff
fpush = push --force-with-lease
sdiff = diff --staged
nadd = add -N .
padd = add -p .
undostage = restore --staged .
[rerere]
enabled = true
autoUpdate = true
[branch]
sort = committerdate
{{ if eq .chezmoi.os "windows" -}}
[credential "https://github.com"]
helper =
helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !'C:\\Users\\muftei\\scoop\\apps\\gh\\current\\bin\\gh.exe' auth git-credential
{{ else }}
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
{{ end -}}
[pull]
rebase = false
|