Upload Xcode projects to github

Upload Xcode projects to github

Never used github until I started programming in Xcode. And one instructor talked about the importance of upload Xcode projects to github. At first I didn’t see it. Now I often check out github for code, and share some of my own code with others.

Upload Xcode projects to github is quite easy. Some offers gui and software tools to upload Xcode projects to github. I prefer doing it from the terminal. It is not that complicated at all.

When you create your Xcode projects, after naming it, you are given the option to create a git repository at your local computer. You should tick that option, if it is not already done. This will init your project to git.

xcode-git

To actually upload your project, open your terminal and navigate to the root of your Xcode project. If you forgot to tick that option to create a local git repository. You will need to initialise your project to git first. Also recommend to create a readme file for all your projects. It will be easier for everyone.

At github:

– Click + New repository

– Name your project.

– Click Create repository.

In your terminal, at your project root folder.

– Type: echo “# Project name” >> README.md

– If you forgot to create a local git repository, type: git init

– Type git add -A

– Type git commit -m “first commit”

– This will depend on your username and project name, but for my last project I had to type this: git remote add origin git@github.com:solron/Swipe-Gesture.git

– And to upload Xcode projects to github, type: git push -u origin master

Now your xcode project is uploaded to github, and others can enjoy your code. And you also have a online backup of your project. Also with excellent version control. I recommend to read more about github, and how you can manage your projects with it. Instead (or at least in addition to) local backups.

Thats it for upload Xcode projects to github!

Happy githubbing!

About Author

Related Posts

can't set locale

Can’t set locale; make sure $LC_* and $LANG are correct!

Can’t set locale; make sure $LC_* and $LANG are correct! This suddenly appeared on all my servers one day after some updates. All of them were running…

Xcode 9 iOS icon sizes

Xcode 9 iOS icon sizes overview

Xcode 9 iOS icon sizes overview Xcode 9 iOS icon sizes overview. They keep adding more and more icon sizes. Xcode 9 has the most icon sizes…

how to uninstall unity

How to uninstall Unity on Mac

How to uninstall Unity on Mac This is how to uninstall Unity on Mac. Follow these simple steps and delete the following folders or files. 1. /Applications/Unity…

Xcode 9 uiimage image not shown

Xcode 9 uiimage image not shown

Xcode 9 uiimage image not shown Working on some ios apps created with Xcode 8 and your images don’t show after upgrading to Xcode 9? Took me awhile…

how to find minecraft on mac

How to find minecraft on mac

How to find minecraft on mac How to find minecraft on mac is quite easy. There is two places you need to look. The Minecraft game itself…

Xcode 8 iOS icon sizes overview

Xcode 8 iOS icon sizes overview Xcode 8 iOS icon sizes overview. There are even more icon sizes since Xcode 7. And it can be an extra challenging…

Leave a Reply