Skip to content

Instantly share code, notes, and snippets.

@steve13565
Last active August 29, 2015 14:24
Show Gist options
  • Save steve13565/20d53edbf306e7a6015d to your computer and use it in GitHub Desktop.
Save steve13565/20d53edbf306e7a6015d to your computer and use it in GitHub Desktop.
The Missing Picture
I am starting to use GIT locally. I was having difficulty understanding how to
"checkout" the files into different directories. One for testing, and one for
"production". I think I am just now getting the point of my misunderstanding
and starting to understand what the various git commands do. I was unable to
figure it out easily from the documentation or anything I could find on the
web. I finally drew the picture of a hub and spokes. I wish I could include
it here.
The point is that the Clone repository spokes talk to the hub respository, but
the spokes cannot speak to each other. Thats why you have to push a repository
to the hub, and then pull the hub out to a spoke.
Do I have the concept right? So what I need to do is to create a hub on my
local computer if I want to operate only locally. I read that in some document,
but I had a hard time figuring out the business of understanding exactly what.
git init --bare
was all about. Slowly the dawn dawns, I think.
Most if not all of the documentation is written as if you understand this concept.
I never saw it explained, and I never saw the picture.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment