Xcode with git identity is not confirmed and commit cannot submit the problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.