I have just started a new git project that is so far stored on my local Mac. Now that the project has a few revisions checked into it, I would like to push these changes to a network location (I have a Time Capsule in my local network, where I wish to maintain the master copy of all my code, instead of pushing to Github).
I'm currently reading the Pro Git book, but there are some points that aren't explained. The main point that I need explaining is what's the difference between a git project and a git repository; or are they the same thing?
This is the structure I would like.
my remote root location (over local) for all my projects will be:
/Volumes/Capsule/dev/github/...
under here I would like my projects, eg:
/Volumes/Capsule/dev/github/canary
/Volumes/Capsule/dev/github/guinea
So would canary & guinea be repositories or projects?
I know you can add a remote using the command of the form: git remote add
The example I'm working from is:
git remote add local_proj /opt/git/project.git
but what is project.git? (or is this a typo? shouldn't it be .../project/.git)
My canary project root folder is ~/dev/github/canary and the git administration files are in ~/dev/github/canary/.git
so what is the equivalent command for the canary project?
I tried the following from ~/dev/github (canary is in this folder)
git remote add canary /Volumes/Capsule/dev/github/canary.git
but got this error message:
fatal: Not a git repository (or any of the parent directories): .git
The reference that you specify in the git remote add, is that per project or per repository? Would I have 2 difference references for canary and guinea, or is there just 1 remote locations under which both canary and guinea be referenced?