It was quite complicated for me to add existing project to GIT source control. I found this solution on stackoverflow.com . After following this steps I successfully commit my exiting project to bitbucket.
- Quit Xcode (not sure if this is necessary but I do it just in case)
- Run Terminal
- Get into the project folder directory
- find .
- Find the file that says "UserInterfaceState.xcuserstate" and copy the entire filename up to the ./
- echo "paste the UserInterfaceState.xcuserstate file here" >.gitignore
- cat .gitignore
- git init
- git add .
- git commit -m "You can type a comment here like now under source control"
You now have a repository and your project is under source control
Good Luck !
No comments:
Post a Comment