Skip to content

Instantly share code, notes, and snippets.

@koderhun
Last active July 13, 2023 13:34
Show Gist options
  • Save koderhun/ddfd70c609f21c142ee11f72784a2faf to your computer and use it in GitHub Desktop.
Save koderhun/ddfd70c609f21c142ee11f72784a2faf to your computer and use it in GitHub Desktop.
Корневой конфиг для git
[user]
name = Ramil
email = example@gmail.com
[core]
editor = nano
[init]
defaultBranch = main
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code --wait $MERGED
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
up = fetch --prune
[push]
default = current
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[pull]
rebase = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment