Enabling source control on an Existing Xcode project

So i just came across this neat little trick on stackoverflow on how to add source control to an existing xcode project that dosent have subversion enabled on it. I found myself having a project that i really needed to enable the built in source control that comes with xcode instead of using a repository hosted elswhere.

Basically you have to create the git repos via your terminal but inside your app folder:

-we just have to ignore the UserInterfaceState.xcuserstate file becuase it chnages very often and dosent have anything to do with the actual code of your project.