解決 Xcode 的 failed to commit files 問題

来源:互联网 发布:孔浩 java下载 编辑:程序博客网 时间:2024/06/06 10:38

透過 Xcode,我們很輕鬆就能實現基本的 git 版本管理功能,比方從 menu 點選 Source Control > Commit,記錄此時此刻的版本。

正常情況下,commit 是不會有問題的。不過有些人也許運氣不好,老天爺總和他作對,連 commit 都出錯,出現錯誤訊息 The working copy xxx failed to commit files. ,內文 Couldn’t communicate with a helper application. 或是 Please tell me who you are。

解決的方法如下:

1 打開 Terminal。


2 輸入以下指令

git -- global

git config --global user.email “you@example.com”

git config --global user.name “Your Name”

一個填你的email,一個填你的名字。



阅读全文
0 0
原创粉丝点击