本文只強調問題怎麼解決:
情景:在Eclipse等編譯器中,使用Git提交代碼出現類如:Please use the form: A U Thor <[email protected]> 的字樣。
此刻請留意Git Staging右下角可填寫部分!!!
一個是“commit Message”,即本次提交的備註。
重點來了:
一個是“Author”, 這個不只是git配置中的user.name,而是應該格式寫成 user.name <user.email> ,如:狗子 <[email protected]>
一個是“Committer”,這個不只是git配置中的user.name,而是應該格式寫成 user.name <user.email> ,如:狗子 <[email protected]>
這2個地方應該怎麼確認? 選擇項目,右鍵-> Team -> Show in History,點看單個查看Author和Commiter,相信你看到了。
而類如Eclipse的編譯器有時候不會填充這2個值,我們不注意就提交,屬於非智商錯誤,要引以爲戒!
感謝:http://blog.csdn.net/cktmyh/article/details/55275980