threads / discuss / 26327

First time gitr - have some questions

Subject: First time gitr - have some questions

## tl;dr

3 messages between Jan 24, 2011 and Jan 24, 2011.

replies: 2people: 3as markdown or json

toltmanns· Jan 24, 2011, 18:20 UTC · lore
First off, I may be in the wrong place, but I need a sanity check here.

I've downloaded and am attempting to use the git bash app, trying to issue the following command and am getting fatal: Not a git repository

git submodule add git@github.com:toltmanns/steal.git public/steal

I went through directions here - http://www.javascriptmvc.com/docs/getstarted.html#&who=install

Made it to creating the github account and forking the codesets needed.
Am I missing something?

Thanks in advance, Troy Oltmanns

-- 
View this message in context: http://git.661346.n2.nabble.com/First-time-gitr-have-some-questions-tp5956101p5956101.html
Sent from the git mailing list archive at Nabble.com.
Andrew Keller· Jan 24, 2011, 19:28 UTC · re: toltmanns · lore

Re: First time gitr - have some questions

On Jan 24, 2011, at 1:20 PM, toltmanns wrote:
> First off, I may be in the wrong place, but I need a sanity check here.
Communication is the most efficient way to implement a sanity check.
> I've downloaded and am attempting to use the git bash app, trying to issue
> the following command and am getting fatal: Not a git repository
> 
> git submodule add git@github.com:toltmanns/steal.git public/steal
I like that error because of how few scenarios can cause it.  Your current working directory is not inside a repository.  'cd' into the repository and try again.
~ Andrew Keller
Matthieu Moy· Jan 24, 2011, 20:55 UTC · re: toltmanns · lore

Re: First time gitr - have some questions

toltmanns <toltmanns@gmail.com> writes:
Show 6 quoted lines
> First off, I may be in the wrong place, but I need a sanity check here.
>
> I've downloaded and am attempting to use the git bash app, trying to issue
> the following command and am getting fatal: Not a git repository
>
> git submodule add git@github.com:toltmanns/steal.git public/steal
> I went through directions here -
> http://www.javascriptmvc.com/docs/getstarted.html#&who=install
That page says, just above the command you're trying:
  "You want to fork each project and add it as a submodule to your
   project"
which you should read as
  "At this point, you should have a Git project (i.e. repository) of
  your own, and you can add our projects as subprojects of yours"

which probably implies that you should read some Git tutorial to learn how to deal with your own project before trying to understand submodules ;-).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

← back to recent threads