為解決idea合并代碼時的報錯:
11:40 Couldn't merge origin/getGoodsByDepotCoverageAreaId-2017-08-09: unable to auto-detect email address (got 'WIN7@WIN7-PC.(none)')
1、管理員權限下運行cmd,進入“C:\Users\WIN7”目錄,使用以下命令創建.gitconfig配置文件
type NUL > .gitconfig
ps,md/mkdir .gitconfig是創建文件夾
2、修改.gitconfig配置文件內容如下,賬戶信息需要運維開通git權限,保存后重新打開idea即可
[User]
? ? ?name = max
? ? ?email = max@jollycorp.com