Hello Stephen
I have no experience on GIT. For version control problem, I think user only needs to check in the project folder, excluding ‘Debug’ subfolder. The “.metadata” records the configurations for workspace, not for project, so “.metadata” can be excluded from version control.
The “Source->Format” commands applies the full “C/C++ > Code Style > Formatter” preferences to the entire contents of the active editor, or to the selection if there is one.

Best Regards
Fiona Kuang
TIC - Technical Information Center
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------