Change git core.editor from default to vscode & nice git log

Опубликовано: 28 Май 2026
на канале: Samuel Li
3
0

Commands to make git use VScode instead of vim:
`git config --global core.editor "code -n --wait"`

Command to bring out the git config and add alias for log:
`git config --global -e`
^That brings out the folder
```
[alias]
lg1 = log -graph --abbrev-commit --decorate --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(auto)%d%C(reset)' --all
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(auto)%d%C(reset)%n %C(white)%s%C(reset) %C(dim white) %an%C(reset)'
lg = !git lg1
```
^That's my alias, you can just copy it :) (thank you to whoever I got it form the internet from)