Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Running GIT on Lion, for Xcode

Posted on 2012-03-14
4
Medium Priority
?
718 Views
Last Modified: 2013-11-13
From what I understand, the latest Xcode has GIT. I installed Xcode over the weekend.

How do I use GIT? Is it a complete install that came with Xcode? It seems I can use it from Xcode. How does that work? I am pretty sure I saw a demo that shows using Xcode to compare versions of the same file. What other features are there for managing source code?

What limitations are there?
How does it compare to SubVersion?
Can I make branches off of the trunk?

Thanks!
0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
eager earned 2000 total points
ID: 37725851
There are many tutorial about git online.  Here's one listing of several :  http://sixrevisions.com/resources/git-tutorials-beginners/

Git is a distributed version control system, with extensive functionality (and some amount of complexity). You can create branches (easily and quickly) as well as sub-projects and much more.

Subversion has a central repository.  Git has no central repository; each installation is free-standing and complete, although likely linked to a parent.  Git is better compared to Mercurial and BitKeeper than Subversion.
0
 

Author Comment

by:newbieweb
ID: 37735917
So multiple developers can cooperate on a project. How do they share their work? Is there a "trunk" or a "latest version"?

How could I back it up unless I could get everything on one machine?
0
 
LVL 8

Assisted Solution

by:eager
eager earned 2000 total points
ID: 37735969
Your questions come from familiarity with a centralized repository system such as Subversion, CVS, Perforce, etc.  A distributed SCM is different and it takes a bit of time and study to alter the way that you look at source code management.  Read the tutorials.

Each developer has his/her own repository for a project, derived from another repository for the project.  This is similar to the working directory for a Subversion project, except it is complete. You can do anything with the repository, such as branching, merging, tagging, or committing patches, just like Subversion, except that you don't need a separate repository which you interact with.  Git has functions which allow sharing patches, merging from one repository to another, or updating a repository to include changes made in another.  

There are several ways to share work.  Perhaps the most common is to pull patches from one repository to another.  Other ways are to push patches from a repository to a parent repository or create a patch which can be applied to another repository.  

Each repository is independent and can have it's own trunk and branches.  There is a latest version, but that only has meaning for a specific repository.  For example, there is a trunk (named master) for the Linux kernel at kernel.org, but there is a different trunk for various clones of the kernel.org repo.  Git has functionality which supports exchanging patches between repositories with common origins.

Backing up a git repo can be done by making a copy (e.g., using tar) or by cloning it, creating a new and equivalent repository.
0
 

Author Closing Comment

by:newbieweb
ID: 37753058
Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Assume you have an outside contractor who comes in seasonally or once a week to do some work in your office, but you only want to give him access to the programs and files he needs and keep all other documents and programs private. Can you do this o…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Starting up a Project
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question