andforce

gitconfig


配置git,把下面脚本保存到~/.gitconfig即可.

[core]
	autocrlf = false
	excludesfile=~/.gitignore
	editor = vim
[user]
[merge]
	summary = true
	tool = meld
[diff]
	renames = copy
	tool = meld
	wordregex = "[[:alnum:]_]+|[^[:space:]]"
	external = /bin/git-meld.sh
[i18n]
	logoutputencoding = UTF-8
[color]
	diff = auto
	status = true
	branch = auto
	interactive = auto;
	ui = auto;
[showbranch]
	default = --topo-order
	default = heads/*
[status]
	submodulesummary = -1
[format]
	numbered = auto
[push]
	default = tracking

[alias]
	sed = !git ls-files --stage | grep ^100 | awk '{print $4}' | xargs sed -r -s
	slg = shortlog --pretty='format:%h %s'
	locate = !sh -c 'git ls-files | grep --color=auto "$1"' -
	co=checkout
        ci=commit -s -a
        br=branch
        st=status
        cp=cherry-pick
        cr=cherry
        rb=rebase
        fp=format-patch
        hist=log --pretty=format:\"%Cred%h %Cblue%ad %Cred| %Creset%s%d %Cgreen[%an]\" --graph --date=short
        flog=log --pretty=fuller --graph