iOS Life

  • Home
  • ABOUT
  • SERVICES
  • PORTFOLIO
  • BLOG
  • Contact

Tools: Git and GitBox

When I first started making apps I didn’t care about version control software. I did have my own backup method that consisted of me copying my current code to another directory then add a version number to the end with a short description. This would ensure that I could go back to a previous version of working code if I messed up the current feature I was working on. When my apps started getting bigger and more complex I started to understand the value of true version control software.

Welcome to Git

Git is free software that allows you to take a snapshot of your codebase at anytime. Once you add Git to the directory of your project, then all of your files (including code, images, scripts and even the project settings) are saved and every change or keystroke is recorded, allowing you to revert back anytime. If you accidentally delete a file you can bring it back with Git. If you want to go back in time and review a method that you deleted or changed you can do that. Git is most important when you are working in teams. It allows multiple people to work on the same codebase and check-in a different times, usually automatically merging the code together.

The easiest way to get started on a Mac is to download the install here (again it’s FREE).

To learn all about Git and it’s commands, read the Git Book. It’s a great book on learning the basics and best of all it’s FREE as well. Once you have Git installed, follow the instructions here to create your first repository: Git Basics – Getting a Git Repository

Hosted Environment

Git can be run locally on your computer, you don’t need to have a hosted environment for it to work. Yet the advantage of having your code hosted allows you to work on it in different locations. Also since it’s hosted remotely it’s safe from your computer hard drive crashing and losing all your code that you worked on for all those hours. The most popular hosted environment is called GitHub. If you work for a company, more often than not they will have an account where all of the code for their apps is kept. GitHub is not free and requires you to pay for the number of code repositories you have. If you are an independent developer you will probably want to use BitBucket, it’s completely FREE and you can setup as many repositories as you need. I’ve been using it for all of my independent apps and it is fantastic!

GitBox

When I first started using Git I only used the command line as described in the Git Book above. There are a couple good applications that allow you to manage your Git repository using a GUI. You can even use Git within XCode since it has it’s own Source Control built in (File > Source Control). This works fairly well until you start using sub-projects. The tool that I use is called GitBox. It’s a very simple app that organizes your Git repositories, see all your changes and easily commit files and push to a remote hosted environment.
1.6.2-screenshot1
For more information on GitBox checkout their website. It costs $14.99, but it’s worth every penny to ensure your code is managed correctly and keeps you out of the Terminal.

Mar 4, 2013 Brian Coleman
How I Learned Objective-CFramework: Using FMDB to communicate with SQLite Databases
You Might Also Like
 
Tools: Optimizing your Images
 
TestFlight vs Enterprise Distribution
10 years ago Toolstools656
Follow Me
    
Categories
  • About Me
  • Frameworks
  • My Apps
  • News
  • Strategy
  • Swift
  • Tools
  • Tutorials
  • tvOS
  • Uncategorized
  • Videos
  • Watch
Archives
  • May 2016
  • January 2016
  • October 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015
  • November 2014
  • October 2014
  • September 2014
  • July 2014
  • June 2014
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
brianjcoleman on Twitter
  • Classix is still holding in the top charts on Apple TV in Canada. #55 Free, #23 Top Grossing. #tvos #appletv #app https://t.co/xuEJiT4rro, Jul 14
  • New Blog Post: "Classix for iPhone, iPad & Apple TV” #iOSDev #ios #swift #swiftlang #SwiftDevs #AppleTV Read here: https://t.co/uF6w3gYOot, May 20
  • New Blog Post: "How to test your app for IPv6 compatibility” #iOSDev #ios #swift #swiftlang #SwiftDevs Read here: https://t.co/SveichSUep, May 6

Recent Posts
  • Classix for iPhone, iPad & Apple TV
  • Tutorial: How to test your app for IPv6 compatibility
  • Tutorial: Testing SSL using Charles Proxy on an iOS Device
  • Tutorial: 3D Touch – Quick Actions in Swift
  • tvOS Tutorial: Top Shelf in Swift
Featured Apps
Classix
Sportsnet
TAGS
tutorialswiftios8iosobjective-cvideostrategygamesframeworknewsappsmonitizeios7applefacebookwatchtoolstvosios9bookdesignsocialapiprovisiontutorialsbooksiapiTunes ConnectIPv6
Search
ABOUT
Brian is a Lead iOS/tvOS Developer from Toronto with over 18 years of multifaceted experience including development, design, business analysis and project management.
MOST VIEWED
Tutorial: How To Use Login in Facebook SDK 4.1.x for Swift
163,489 views
Tutorial: How to test your app for IPv6 compatibility
102,074 views
Tutorial: How to use Auto Layout in Xcode 6
89,234 views
FOLLOW ME
    
Email Subscription
Sign up for my newsletter to receive the latest news and tutorials posted.

Enter your email address:

2013-2017 © Brian Coleman