Issues using git in XCode

I feel a bit dumb asking for help because it is clear that git integration in XCode should just work, but it never worked for me and I hope someone can help.

I can see some more work went into XCode 15 Beta but it is not working well their either.

It always sort-of worked, but many features are just broken.

I can do basic commits and push to a remote but almost everything else is broken. The following basic things does not work:

  1. Upstream changes are never shown. It shows that I am behind but there is nothing I can do about it.
  2. Pull does not work. When I select "Pull" it shows "Loading..." in the dropdown. Pressing the Pull button dismisses the dialog, but does nothing. I have top pull from the command line, or use external app.
  3. It does not show my current position in a repo correctly. Neither in my current branch, or when I look at the remotes (origin). Refresh and Fetch has no effect. I can switch to a different point in the branch, but the display does not show me that it happened. I can however confirm with command line or external tool that it worked (and obviously the code).

I did a very simple test where I made a local repo on the file system. I then cloned two projects from it, and used it to test the above. It works perfectly from command line, or Sourcetree, but not from XCode.

What am I doing wrong? I've read all the help from apple and various guides but clearly I am doing something wrong. It would have been nice if I did not have to switch my tools.

Which beta of Xcode 15 are you running? I'm having reasonably good luck with beta 5, it only seems to have difficulty with very specific things, which can usually be fixed by adding files on the command line (git add <files>).

Issues using git in XCode
 
 
Q