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