Search code examples
xcodegitxcode10

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?


Solution

  • 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