[NBP web-reskin] Question: Git - checkout

Ethan Rowe ethan at endpoint.com
Thu Aug 27 10:58:05 EDT 2009


Didomenico, Steven wrote:
> Hello,
> 
> Yesterday a question came up in our weekly meeting.
> 
> Since we have (4) developers working in (4) Local Camps, how do we
> "checkout" code from the Master Camp?
> 
> Will git checkout do it for us?
> 
> Or does this checkout from the Branch (the Local Camp)?
> 
> http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html
> 
> Please let us know,

Your camps are all configured to use a different central repository
(referred to by the "origin" remote in your camps/repos) than the
production site.

The notion of "checking in" and "checking out" work in Git is rather
different from centralized systems.  But the basic gist is:
* you do work in your camp
* you commit that work; the commits go to your camp repository, but
aren't in the central repository yet
* you use "git push" to push your local commits upstream to the central
repository
* you use "git pull" (generally, "git pull --rebase" is a good choice,
to get precise) to pull the latest stuff from the central repository
into your camp repository.

A "checkout" in Git puts you on a particular branch and updates your
working copy (the stuff that you're working with directly in the file
system).  It's not exactly analogous to a checkout in a centralized
system like CVS or Subversion.

And if you're used to Visual SourceSafe, with the idea of checking out a
file and thus having a lock on that file until you check it back in,
well, sorry. Git is absolutely not like that at all.  :)

Thanks.
- Ethan

-- 
Ethan Rowe
End Point Corporation
ethan at endpoint.com


More information about the Web-reskin mailing list