gitconfig

For git configuration, create a new .gitconfig and place it in the ~/.gitconfig directory

 

[core]
	excludesfile = /Users/jiangyunpeng/.gitignore_global
	quotepath = false
[difftool "sourcetree"]
	cmd = opendiff \"$LOCAL\" \"$REMOTE\"
	path =
[mergetool "sourcetree"]
	cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
	trustExitCode = true
[alias]
    st = status
    co = checkout
    br = branch
    mg = go
    ci = commit
    md = commit --amend
    dt = difftool
    mt = mergetool
    last = log -1 HEAD
    cf = config
    line = log --oneline
    latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]'

    ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad %C(red)%d %C(reset)%s %C(green)[%cn]\" --decorate --date=short
    hist = log --pretty=format:\"%C(yellow)%h %C(red)%d %C(reset)%s %C(green)[%an] %C(blue)%ad\" --topo-order --graph --date=short
    type = cat-file -t
    dump = cat-file -p
[push]
	default = simple
[branch]
	autosetuprebase = always
[user]
	name = yunpeng.jiangyp
	email = [email protected]
[gc]
	autoDetach = false

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326449147&siteId=291194637