Aaron Wardle
Mobile & Web Software Developer
  • Home
  • Mobile Apps
  • Blog
  • About
Select Page ...

Blog

Adding an Xcode project to BeanstalkApp using Git

admin February 13, 2014 Development Tips No Comments

I quite often struggle to remember these steps so thought it would be useful to write them down here for future reference and for anyone else on the web to use.

Here I will be setting configuring my existing Xcode project which is not source code managed presently and hooking it up to a BeanStalkApp.com git repository.

  1. Create your new repository over at www.beanstalkapp.com
  2. For my projected I decided to use https so I copied this URL
  3. Open terminal and navigate to the root folder of your Xcode project
  4. Create a new file in the root directory called .gitignore
  5. Add the contents of this Gist to the ignore file https://gist.github.com/aaronwardle/8976367
  6. Back in Terminal type the command git init and press return
  7. Then type  to add all your files to git
    git add .
  8. You will now need to commit your changes so type in
    git commit -m “Adding git ignore file”
  9. Once the files are committed to your local repository you will now need to add the remote server type in the following command

    git remote add origin
    https://XXXX.git.beanstalkapp.com/xxxxxxxx.git

    Replace the X’s with your specifics or even better just use the URL which you got from BeanStalkApp in step 2

  10. Now you are ready to push all your changes to BeanStalk
  11. Type in the following command
    git push origin master

Once you have done this simply restart Xcode and it will detect that the project is now managed by Git, and you should now be able to push / pull changes to Beanstalkapp.com via Xcode.

← Month 1 – Day 2: Run Monkey Run
admin

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

WP-SpamFree by Pole Position Marketing

  • Categories

    • Development Tips
    • Game Development
    • iPhone App Talk
    • Tutorials
    • Uncategorized
    • Website Talk
  • Twitter Updates

    • No public Twitter messages.
  • Links

    FreeAgent Small Business Online Accounting

    • Photos on flickr

    • Aaron Wardle

      Feel free to follow me on any of the social networks below.

    • EmailLinkedInTwitter
    Copyright © 2014 Smart PC Solutions Ltd. All Rights Reserved