Home
BBB Yahoo

Git Tips

By Robert John Stevens, CEO of WriteExpress Corporation

Git vs SVN

  • Git doesn't require a server for a central repository. You can create local repositories in seconds.

Git Tips for Apple's XCode 4

  • Git is so elegantly intregrated into Apple's XCode that to create a local Git repository, all you need to do is to check a checkbox during the New Project Wizard.
  • When you create a project in XCode 4, a .git directory is created in your project directory. It is not visible in the Finder so launch a terminal window and view it there.
  • In your project, right click on a file, click Source Control. If the menu items are grayed out, modify a file and view the menu again.
  • View the project timeline by clicking a tiny clock icon at the botom bar

Git Command-Line Commands

  • git init—creates an empty Git repository
  • git add .—adds everything from the current directory to the repository
  • git commit -m "comment"—commits the changes and lets you add a comment in parenthesis



Copyright © 2011 Robert Stevens. All rights reserved.

This article was commenced on November 18, 2011. Last update: November 18, 2011.


Ad by Google

© 1996-2011 WriteExpress Corporation. All rights reserved.
WriteExpress®, Rhymer® and Unblocking Writers' Block® are registered trademarks of WriteExpress Corporation.