Repository navigation
Expand file tree
/
Copy path.gitconfig
More file actions
66 lines (66 loc) · 1.79 KB
/
Copy path.gitconfig
File metadata and controls
66 lines (66 loc) · 1.79 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[github]
user = satnami
[user]
name = Mhd Sami Al Mouhtaseb
email = mssatnami@gmail.com
signingkey = F36B80357B0B658A
[color]
ui = true
[core]
autocrlf = input
safecrlf = false
excludesfile = ~/.gitignore_global
ignorecase = false
[alias]
pl = pull
ps = push
l = log --pretty=oneline -n 20 --graph --abbrev-commit
aa = add --all
co = checkout
br = branch
brn = "!f() { git checkout -b satnami/$1; }; f"
cm = commit -v -S -m
st = status
discard = reset --hard HEAD
unstage = reset HEAD --
unstage1 = reset HEAD~1 --soft
plom = pull origin master
plou = pull origin upstream
psom = push origin master
psou = push origin upstream
tags = tag -l
remotes = remote -v
branches = branch -a
branchesr = for-each-ref --sort=-committerdate --format=\"%(color:green)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
stashs = stash list
dummy = !git add . && git commit -m . && git push origin master
open = !vim `~/git-open.sh`
contributors = shortlog -e --summary --numbered
pull-default = "!f() { \
branch=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's#^origin/##'); \
if [ -z \"$branch\" ]; then \
if git show-ref --verify --quiet refs/remotes/origin/main; then branch=main; \
elif git show-ref --verify --quiet refs/remotes/origin/master; then branch=master; \
else echo 'Cannot determine default branch'; exit 1; fi; \
fi; \
git pull origin \"$branch\"; \
}; f"
[commit]
gpgsign = true
[push]
default = current
[pull]
default = current
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[tag]
gpgsign = true
[gpg]
program = gpg