Xcode 15, how to not stage all new files

Hello All:

In the XCode 15 with the new 'Integrate' functionality to replace the old Source control stuff, I see a change in behaviour I am uncertain how to get back to:

  • Before, if the source tree happened to have new files (or directories), they would show up as '?' files, and when I committed (and pushed) they were not by default added to the repository and checked in.

  • Now, it seems that the default 'Commit and push' feature asks to 'Stage all changes' and it will add every new file and directory to the commit.

  • There is no obvious way I can see to tell Xcode to only commit the modified and explicitly added (or removed) files, and ignore the other files (especially large binary files I want in the project locally, but not checked in).

  • Is there a way to commit from XCode and maintain the old behaviour?

Thanks,

Dan

You can right click individual files in the Integrate view and stage only those you like to include in a commit.

Also, you can add a .gitignore file (it's a plain text file) to the root directory of your project.

Any files listed there will not be shown with the question mark and are not included in any of the commits. Unless you force them to (git add -f file-not-to-be-committed.bin).

Xcode 15, how to not stage all new files
 
 
Q