Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No author information was supplied by the version control system

I just updated my Xcode to version 10.2 (10E125).

A moment I want to commit, I get this message:

enter image description here

After I click on fix:

enter image description here

I have filled in the information, but I’m still getting that message above.

What's the reason?

like image 438
Nizzam Avatar asked Mar 27 '19 01:03

Nizzam


People also ask

How do you fix no author information was supplied by the version control system?

Setting your Git username for a single repository Click on "Fix" and provide your Git username and email. This fixed my issue.

How do I use source control in Xcode?

To copy a remote repository, select Source Control > Clone. If you add one or more source control accounts, Xcode shows a list of the projects that you can select to clone. Alternatively, get a URL for a remote repository, paste it into the repository URL field, and press Enter.


2 Answers

You can set the author information using Terminal. It might be possible that xCode has the author data but it's not actually set in Git config.

Setting your Git username for every repository on your computer

1) Open Terminal.

2) Set a Git username:

$ git config --global user.name "Mona Lisa"

3) Confirm that you have set the Git username correctly:

$ git config --global user.name
> Mona Lisa

Setting your Git username for a single repository

1) Open Terminal.

2) Change the current working directory to the local repository where you want to configure the name that is associated with your Git commits.

3) Set a Git username:

$ git config user.name "Mona Lisa"

4) Confirm that you have set the Git username correctly:

$ git config user.name
> Mona Lisa

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

like image 176
Philip Borbon Avatar answered Oct 20 '22 01:10

Philip Borbon


Click on "Fix" and provide your Git username and email. This fixed my issue.

like image 39
ak_ninan Avatar answered Oct 20 '22 01:10

ak_ninan