I have existing project and I want to add it in “git local repository”.
How can I do that ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Open the
Terminaland go to your project directory – the one with*.xcodeproj.Type
git init .to initialize a Git repository there.Now you don’t want all the files under source control, so Git allows you to ignore some of them by including them in a file
.gitignore. You can check this to find outOpen the project and your task is done. However it would be better to head to the Organizer Window and do a commit of all the files.
Now your project is backed by a git repository.