Unable to commit changes

Hello!

I started to develop a Mac application in Xcode 15, under MacOS 13. I made several commits in this environment. Later, I switched to another Mac and continued the development in Xcode 26.2, under MacOS 26. Since then, I haven't been able to make commits. I staged the changes, inserted the message, but the commit button is inactive (non-clickable), as shown in the picture.

Can anyone help me to get it to work again?

Thank you in advance.

Thanks for the post and it seems like when you moved to the new computer the git was not configured? The fact that you switched Macs and upgraded Xcode/macOS versions is a strong indicator, for me, that the issue stems from the environment differences or a configuration mismatch.

Open your Terminal application and navigate to your project directory.

What do you get when you request the git status? git status Does git status accurately reflect the staged changes you see in Xcode? Are there any "untracked files" that Xcode might be confused about? Are there any error messages?

There are a few things you can do in the terminal to make sure git was installed and configured correctly:

git commit -m "Test commit message from terminal"


git diff --cached



In Xcode, go to the Navigator pane (left-hand side). Select the "Source Control" tab (the icon with branches or waves). Does it show any errors or warnings related to your repository?

Check the configuration on git with using the correct username and email address.
 To check:

git config --global user.name
git config --global user.email

git config --global user.name "Your Name"
git config --global user.email "you email address"



The error messages you get from the Terminal will be key to pinpointing the exact cause. Good luck!

Albert Pascual
  Worldwide Developer Relations.

Thank you for you help, Albert! I typed "git status" on Terminal and I got this:

I see no errors on Source Control

I tried your commands to check the configuration on git and… the commit button became active in Xcode. So I made the commit.

Now, it's working, but I'm not sure what made this change. I'd really like to understand to prevent future problems.

Unable to commit changes
 
 
Q