Project Navigator file SCM status has been wonky from the first beta release of Xcode 26, and continues to be with version 26.2. It matches actual Git state perhaps 50% of the time, and needs a complete restart of Xcode to refresh. Someone needs to attend a refresher State Machines 101 course. It seems likely this situation affects all Git interactions in Xcode 26. Best option is using external client, cli or GUI.
Topic:
Developer Tools & Services
SubTopic:
Xcode