-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
54 lines (47 loc) · 2.03 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[core]
autocrlf = true
[user]
name = Marco Andreolli
email = [email protected]
[sendemail]
smtpserver = C:/Program Files/TortoiseGit/bin/msmtp.exe
[push]
default = simple
[alias]
c = commit
ck = checkout
s = status
b = branch
d = difftool
dr = "!func(){ git fetch && git diff @{upstream} --name-only; }; func"
lg = log --stat --graph ; log semplificato
rc = reset --mixed HEAD~1 ; sposta il puntatore del branch attuale mantenendo le modifiche
lg-my = log --stat --graph --author='Marco Andreolli' ; log dei commit di un autore
lg-my-oneline = log --oneline --author='Marco Andreolli'
last = log -1 HEAD ; ultimo commit
f = push --force-with-lease
ss = "!f() { git stash show stash^{/$*} -p; }; f"
sa = "!f() { git stash apply stash^{/$*}; }; f"
sl = stash list
fp = format-patch
rm = rm --cached
pp = "!func(){ git pull --no-edit && git push;}; func" ; pull e push in un solo comando
branchdate = !git for-each-ref --sort='-authordate' --format='%(refname)%09%(authordate) %(committername)' refs/heads | sed -e 's-refs/heads/--'
ls-remote = ls-remote --heads ; elenco dei repository presenti sull'origine remota
r = reset --mixed HEAD~1 ; resetta l'ultimo commit, lasciando i file modificati e da committare
#recentrepo = "for-each-ref --sort='hci' --format='%(committerdate:relative)|%(refname:short)|%(committername)' refs\remotes\ | column -s '|' -t"
[diff]
tool = vimdiff
[merge]
tool = gvimdiff
[difftool]
prompt = false
[safe]
directory = Y:/doc
directory = Y:/doc/lavoro
directory = Y:/c/.fzf
directory = Y:/project/git-test/github/test
directory = Y:/doc/snippets
directory = Y:/doc/fotografia
directory = \\\\file-server\\sorgenti-prg\\HSMARUBA_INTERFACE
directory = //file-server/sorgenti-prg/SIPCAR_2.0/ArmadioJVM