-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
40 lines (38 loc) · 1.07 KB
/
.gitconfig
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
[user]
name = danishprakash
email = [email protected]
signingkey = 66820561C42B7C0C
[core]
editor = /bin/nvim
excludesfile = ~/.gitignore
pager = cat
[alias]
open = "!f() { REPO_URL=$(git config remote.origin.url); open ${REPO_URL%%.git}; }; f"
browse = !git open
s = status -s
a = add
acp = !git add . && git commit --amend --no-edit && git push -f origin
ch = checkout
chb = checkout -b
cm = commit --signoff --message
cfp = !git commit --amend --no-edit && git push -f origin
udiff = diff --indent-heuristic --minimal --color-words
diff = diff --no-pager
fr = !git fetch origin && git rebase origin/master
hash = rev-parse --short HEAD # helpful for cherry-picking
l = log --pretty=format:\"%h %ad | %s [%an]\" --graph --date=short -n 15
p = push origin
pf = push -f origin
[status]
branch = false
[help]
autoCorrect = -1
[push]
default = current
[diff]
tool = vimdiff
[commit]
verbose = true # viw more details(diff) while committing changes
gpgsign = true
[http]
cookiefile = ~/.gitcookies