text gitconfig

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text gitconfig相关的知识,希望对你有一定的参考价值。

[user]
	name = name
	email = email
[alias]
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    pull = pull --rebase
    ck = checkout
    st = status
    ps = push
    pl = pull
    b = branch
    ci = commit -m
[core]
	excludesfile = /home/user/.gitignore_global
	editor = /usr/bin/vim
[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
[color]
	ui = auto
[commit]
	template = /home/user/.stCommitMsg
#[url "ssh://git@github.com/"]
#  insteadOf = https://github.com/
[url "https://token:x-oauth-basic@github.com/name"]
	insteadOf = https://github.com/name

以上是关于text gitconfig的主要内容,如果未能解决你的问题,请参考以下文章

text gitconfig

text GitConfig是美丽日志的别名

text 的.gitconfig

text 在~~ / gitconfig上定义的别名

text 的.gitconfig

text 备份.gitconfig