• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 619
  • Last Modified:

GIT command

Hi there,
I never used GIT before, and I am trying to get the source code for some project. II was told to use the following commands.  When I do the submodule command, I am getting some syntax errors.  The person gave me these command is not here now.  Can you tell me what could be wrong with the second command(>git submodule --init –recursive).

I tried "git submodule --init --recursive" assuming it was a typo.  But, that did not work either.

>git clone http://git.xyz/applications/graphics.git
After this you must update a few submodules, so issue the following commands:
>cd graphics
>git submodule --init –recursive

0
ambuli
Asked:
ambuli
  • 2
1 Solution
 
jkrCommented:
According to my git docs, shouldn't that be

git submodule init –-recursive

?
0
 
ambuliAuthor Commented:
That also failed.  I did "git submoduleupdate -- init –-recursive and it appears to be working.  But, not sure if that is the command he was actually telling and missed the "update".
0
 
ambuliAuthor Commented:
Thanks for responding JKR.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now