C:\Program Files\Git\cmd;
C:\Program Files\Git\bin;
git config --global user.name "Mo Yummy"
git config --global user.email "mo.yummy@example.com"
git config --global push.default simple
- *多账户设置
编辑配置文件:C:\Users\moyummy\.ssh\config
Host github.com
HostName github.com
User Mo-Yummy
PreferredAuthentications publickey
IdentityFile ~/.ssh/moyummy
Host git.enterprise.com
HostName git.enterprise.com
User Mo-Yummy-Enterprise
PreferredAuthentications publickey
IdentityFile ~/.ssh/moyummyenterprise
#!/bin/sh
echo Launching WinMergeU.exe: $1 $2
"C:\Program Files (x86)\WinMerge\WinMergeU.exe" -e -ub -dl "Base" -dr "Mine" "$1" "$2"
git config --replace --global diff.tool winmerge
git config --replace --global difftool.winmerge.cmd "winmerge.sh \"$LOCAL\" \"$REMOTE\""
git config --replace --global difftool.prompt false
cd C:\github
git clone https://github.com/MoYummy/hihocoder
git checkout master
git difftool