Solved

Running GIT on Lion, for Xcode

Posted on 2012-03-14
4
673 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
copyEvens challenge 6 63
wordcount challenge 11 72
Turning python script into an applet 12 32
Adoquery sql  left join does not work 25 43
When the confidentiality and security of your data is a must, trust the highly encrypted cloud fax portfolio used by 12 million businesses worldwide, including nearly half of the Fortune 500.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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…
This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles a…

771 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

16 Experts available now in Live!

Get 1:1 Help Now