Less nonsense, direct.
This problem should occur when the local library is not created or the content is not imported.
1 method; tick git when creating a project for the first time
2 Open the terminal, enter the project address into the CD file address (can be done by direct transfer folder)
3 Ls-a View the files in the directory. See if there's a file directory with. git
4 If so, ls-l-A should be able to find files with. git.
5 git Init
6 git Add.
7 git commit-m ' Initial commit '
8 The terminal will give you an error so that you can say the same as the identity, as in run below.
9git config user.email "这个是邮箱"
10 git config user.name "你的名字"
git add
Git commit-m ' Initial commit ' then you'll be brushing a bunch of things in the terminal.
13 Congratulations, just reboot the Xcode and you're OK.
A few days of painstaking work.
In addition terminal input: input command: Git--version. View the current Git version.
Xcode with git identity is not confirmed and commit cannot submit the problem