2017-10-12 41 views
-2

創建一個新的git項目,並且只在我提交時添加README.txt ,發生錯誤。git commit error:name只包含不允許的字符:

enter image description here

+0

改變它你能[編輯]的問題,包括'混帳配置user.name'的內容。此外,最好複製並粘貼實際文字。文字圖像不是很有用。請參閱https://unix.meta.stackexchange.com/questions/4086/psa-please-dont-post-images-of-text –

+1

難以從窗口複製文本並將其粘貼**爲文本**在問題中? – axiac

+0

非常感謝你! 我覺得這是因爲我的user.name是'。'之前。 現在我改變了它,問題就消失了。 –

回答

3

這裏的問題似乎是你的用戶名。用git config --list檢查。 您可以

$混帳配置--global user.name「validName」