File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
[user ]
2
2
name = Ehtesh Choudhury
3
3
4
- [color ]
5
- diff = auto
6
- ui = auto
7
4
[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
8
7
autocrlf = input
9
8
preloadindex = true
10
9
[alias ]
11
10
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
13
12
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
14
13
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
22
16
[push ]
17
+ # https://stackoverflow.com/questions/3206843/how-line-ending-conversions-work-with-git-core-autocrlf-between-different-operat
23
18
default = simple
24
19
[credential ]
25
20
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
You can’t perform that action at this time.
0 commit comments