GitHub Deploy

裴鸿熙
2023-12-01
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"
  • 指定diff工具为winmerge
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
  • clone一个repository
cd C:\github
git clone https://github.com/MoYummy/hihocoder
git checkout master
  • 随意改动一个文件
git difftool
 类似资料:

相关阅读

相关文章

相关问答