.gitconfigメモ

今の.gitconfig設定メモ
いろいろ試した結果コミット操作にターミナル、ビュワー&重要な操作としてSourcetreeを使用するという結論に収まっています。
ただちょっと前からSourcetreeはログインが必須となっています。

[user]
	name = XXXX
	email = XXXX@XXXX
[core]
	quotepath = false
	autoCRLF = false
	# editor = 'C:/Program Files/Microsoft VS Code Insiders/Code - Insiders.exe' --wait
	editor = code --wait
[alias]
	s = status
	d = difftool -d
	t = log --graph --all --date=format:'%Y/%m/%d %H:%M:%S' --format=\"%x09%C(cyan bold)%an%Creset%x09%C(yellow)%h%Creset %cd %C(magenta reverse)%d%Creset %s\"
	# tree = log --graph --all --format=\"%x09%C(cyan bold)%an%Creset%x09%C(yellow)%h%Creset %C(magenta reverse)%d%Creset %s%x09%ai%x09%ci\"	
	cleanup-soft = !git clean -f -d -x && git submodule foreach git clean -f -d -x
	cleanup-hard = !git reset --hard && git clean -f -d -x && git submodule foreach git reset --hard && git submodule foreach git clean -f -d -x

	tool = bc3
[difftool "bc3"]
	path = C:/Program Files/Beyond Compare 4/BComp.exe
[difftool "sourcetree"]
	cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
	cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
	trustExitCode = true
[gui]
	encoding = utf-8
	fontui = -family \"Ricty Diminished\" -size 10 -weight normal -slant roman -underline 0 -overstrike 0
	fontdiff = -family \"Ricty Diminished\" -size 10 -weight normal -slant roman -underline 0 -overstrike 0

投稿者:

コメントを残す

メールアドレスが公開されることはありません。