Skip to content

Commit d4f27c0

Browse files
author
Ehtesh Choudhury
committed
some update on gitconfig to reflect settings in windows
1 parent 824c0d5 commit d4f27c0

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.gitconfig

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
[user]
22
name = Ehtesh Choudhury
33
4-
[color]
5-
diff=auto
6-
ui=auto
74
[core]
5+
# https://stackoverflow.com/questions/3206843/how-line-ending-conversions-work-with-git-core-autocrlf-between-different-operat
6+
# https://github.com/Microsoft/WSL/issues/184, change to true on Windows
87
autocrlf = input
98
preloadindex = true
109
[alias]
1110
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
12-
; http://stackoverflow.com/a/9074343/198348
11+
# http://stackoverflow.com/a/9074343/198348
1312
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
1413
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
15-
16-
; TODO things to look at:
17-
; git diff "@{30 minutes ago}" ; is a very useful way to check by time
18-
; git checkout "@{30 minutes ago}" ;
19-
; git stash show -p ; shows the stashed version against HEAD
20-
; git show branch:file.py ; show file from other branch
21-
; git difftool branch1:file.py branch2:file.py
14+
lg3 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset) --all'
15+
# there's also git log --oneline
2216
[push]
17+
# https://stackoverflow.com/questions/3206843/how-line-ending-conversions-work-with-git-core-autocrlf-between-different-operat
2318
default = simple
2419
[credential]
2520
helper = cache
21+
# https://stackoverflow.com/questions/45925964/how-to-use-git-credential-store-on-wsl-ubuntu-on-windows
22+
#helper = /mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-wincred.exe

0 commit comments

Comments
 (0)