Gitconfig — различия между версиями
Материал из YourcmcWiki
(Новая страница: «Перед началом работы с git скопируйте себе вот это в gitconfig (name и email поменяйте на своё имя и…») |
м |
||
Строка 13: | Строка 13: | ||
ci = commit -a | ci = commit -a | ||
co = checkout | co = checkout | ||
− | branches = branch | + | branches = branch -a |
br = branch | br = branch | ||
up = checkout | up = checkout | ||
− | glog = log --graph --decorate --all | + | ls = ls-tree --name-only HEAD |
+ | glog = log --graph --all --name-status --decorate | ||
+ | log1 = log --oneline --abbrev-commit --all --graph --decorate --color | ||
+ | lol = log --graph --pretty=format:\"%C(yellow)%h%Creset%C(cyan)%C(bold)%d%Creset %C(cyan)(%cr)%Creset %C(green)%ce%Creset %s\" | ||
+ | dif = diff HEAD | ||
[color] | [color] | ||
ui = auto | ui = auto | ||
Строка 32: | Строка 36: | ||
changed = green | changed = green | ||
untracked = cyan | untracked = cyan | ||
− | [ | + | [merge] |
− | + | defaultToUpstream = true | |
[push] | [push] | ||
default = simple | default = simple | ||
+ | autoSetupRemote = true | ||
+ | [pull] | ||
+ | rebase = true | ||
+ | [svn] | ||
+ | pushmergeinfo = true | ||
[pager] | [pager] | ||
− | + | st = yes | |
[url "ssh://git@github.com"] | [url "ssh://git@github.com"] | ||
pushinsteadof = https://github.com | pushinsteadof = https://github.com | ||
− | [ | + | [submodule] |
− | + | recurse = true | |
</pre> | </pre> |
Текущая версия на 01:06, 10 сентября 2023
Перед началом работы с git скопируйте себе вот это в gitconfig (name и email поменяйте на своё имя и емейл):
[user] name = User Userovich email = user@custis.ru [core] editor = mcedit pager = less -FRXS -x4 quotePath = false [alias] st = status ci = commit -a co = checkout branches = branch -a br = branch up = checkout ls = ls-tree --name-only HEAD glog = log --graph --all --name-status --decorate log1 = log --oneline --abbrev-commit --all --graph --decorate --color lol = log --graph --pretty=format:\"%C(yellow)%h%Creset%C(cyan)%C(bold)%d%Creset %C(cyan)(%cr)%Creset %C(green)%ce%Creset %s\" dif = diff HEAD [color] ui = auto [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = yellow bold frag = magenta bold old = red bold new = green bold [color "status"] added = yellow changed = green untracked = cyan [merge] defaultToUpstream = true [push] default = simple autoSetupRemote = true [pull] rebase = true [svn] pushmergeinfo = true [pager] st = yes [url "ssh://git@github.com"] pushinsteadof = https://github.com [submodule] recurse = true