2017-07-14 94 views
-2

無法完成GitHub共享過程。成功創建GitHub上項目,但初始提交失敗:當我在github上推送我的代碼時,推送到Git返回錯誤代碼

Please tell me who you are. Run 
git config --global user.email "[email protected]" 
git config --global user.name "Your Name" 
to set your account's default identity. 
Omit --global to set the identity only in this repository. 
fatal: empty ident name (for <(NULL)>) not allowed 

執行

git -c core.quotepath=false commit -m "Initial commit" -- 
+1

https://help.github.com/articles/setting-your-username-in-git/ –

回答

1

運行這些命令git的告訴你在。設置姓名和電子郵件:

git config --global user.email "[email protected]" 
git config --global user.name "Your Name" 
+0

可以接受的答案,如果你發現它有用嗎? –