Skip to content

Instantly share code, notes, and snippets.

@stamm
Created April 4, 2012 08:37
Show Gist options
  • Save stamm/2299731 to your computer and use it in GitHub Desktop.
Save stamm/2299731 to your computer and use it in GitHub Desktop.
gitconfig
[push]
#Пушить только текущую ветку
default = tracking
[branch]
# Делать rebase при пуле при создании новой ветки
autosetuprebase = always
[user]
name = Rustam Zagirov
email = rustam@zagirov.name
[color]
ui = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = mcedit
[branch "master"]
# Делать rebase при пуле
rebase = true
[alias]
st = status
ci = commit
cm = commit -m
br = branch
co = checkout
df = diff
lg = log -p
# lol = log --graph --decorate --pretty=oneline --abbrev-commit
# lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lol = log --graph --decorate --pretty=format:\"%C(yellow)%h%Creset%Cred%d%Creset %s [%an - %ad]\" --abbrev-commit --date=local
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment