diff --git a/etc/soft/git/gitconfig b/etc/soft/git/gitconfig index f6ab1f6..c1c251c 100644 --- a/etc/soft/git/gitconfig +++ b/etc/soft/git/gitconfig @@ -51,6 +51,8 @@ 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 + tree = ls --all --simplify-by-decoration + recall = !git-recall alias = !sh -c '[ ! -z $2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias \" >&2 && exit 1' - @@ -75,5 +77,8 @@ pk = !git archive HEAD --format=zip > `basename $PWD`_`\\date '+%Y.%M.%d'`.zip + # https://gitignore.io/ + ignore = "!ignore() { curl -sq gitignore.io/api/${1} | grep -v '^#' | grep .; }; ignore" + [push] default = simple