Gitconfig

Материал из YourcmcWiki
Перейти к: навигация, поиск

Перед началом работы с 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