Solved

Running GIT on Lion, for Xcode

Posted on 2012-03-14
4
679 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
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
eager earned 500 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Specific format 21 182
python question 5 69
Image decoding from Camera 3 72
How to obtain Administrator permission when you are the Administrator 6 66
This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now