Browse Source

Добавлены настройки git

Maxim Lihachev 12 years ago
parent
commit
3a42289371
  1. 3
      etc/shell/bash/aliases
  2. 32
      etc/soft/git/gitconfig

3
etc/shell/bash/aliases

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash ####################################################################
#
# Изменён: Сб 07 сен 2013 12:23:33
# Изменён: Сб 07 сен 2013 14:03:57
#
################################################################################
#{{{ Псевдонимы
@ -58,6 +58,7 @@ alias zathura="nh zathura -c $SHELLRC/etc/soft/zathura/ -d $SHELLRC/etc/soft/zat @@ -58,6 +58,7 @@ alias zathura="nh zathura -c $SHELLRC/etc/soft/zathura/ -d $SHELLRC/etc/soft/zat
alias z="nh zathura -c $SHELLRC/etc/soft/zathura/ -d $SHELLRC/etc/soft/zathura/ -p $SHELLRC/etc/soft/zathura/plugins" #noindex
alias ooo="nh soffice" #noindex
alias sendemail="sendemail -l $LOGDIR/sendemail" #noindex
alias g=git #noindex
if [ $UID -eq 0 ]; then
alias mc="TERM=xterm-256color mc -S modarin256root"

32
etc/soft/git/gitconfig

@ -18,10 +18,38 @@ @@ -18,10 +18,38 @@
tool = vimdiff
[help]
autocorrect = true
autocorrect = 1
[credential]
helper = cache --timeout=3600
[alias]
last = log -1 HEAD
ci = commit
cm = commit -m
cr = commit --amend
cv = commit --verbose
recommit = commit --amend
df = diff
br = branch
st = status
p = pull
u = push
lf = log --source --graph --stat --date=iso --pretty=medium --decorate=full
ls = log --graph --pretty=format:'%Cred%h%Creset - %Cgreen[%cd]%Creset ::%C(yellow)%d%Creset %s %C(bold blue)%Creset' --abbrev-commit --date=short
ll = !git --no-pager log -1 HEAD && echo
lu = !git --no-pager log --left-right --pretty=format:'%C(yellow)%h%Creset - %Cgreen[%cd]%Creset :: %s %C(bold blue)%Creset' --abbrev-commit --graph --color --date=short origin/master...HEAD | nl
alias = !sh -c '[ ! -z $2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -
aliases = !git config --get-regexp 'alias.*' | sed 's/alias.//' | sed 's/ / = /'
# This produces output that can be displayed using dotty, for example:
# $ git graphviz HEAD~100..HEAD~60 | dotty /dev/stdin
# $ git graphviz --first-parent master | dotty /dev/stdin
# Note how defining a function eliminates the need to use sh -c.
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '\n}'; }; f"

Loading…
Cancel
Save