NikiYani / my-gitconfig

My simple and favorite gitconfig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My .gitconfig

[user]
  email = YanchenkovNS@?????.ru
  name = Yanchenkov Nikita Sergeevich
  username = YanchenkovNS

[init]
  defaultBranch = master

[credential]
  helper = cache

[alias]
  s = status
  co = checkout
  cob = checkout -b
  del = branch -d
  delf = branch -D
  save = add -A && git commit -m
  undo = reset HEAD~1 --mixed
  res = reset --hard
  done = push origin HEAD
  lg = log --pretty=format:"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]" --abbrev-commit -8 --graph
  br = branch --sort=-committerdate --format='%(color:reset)%(HEAD) %(color:green)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) %(color:green)[%(authorname)]'

[core]
  excludesFile = ~/.gitignore

About

My simple and favorite gitconfig