GIT command

Posted on 2011-10-27
Last Modified: 2013-11-15
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
After this you must update a few submodules, so issue the following commands:
>cd graphics
>git submodule --init –recursive

Question by:ambuli
    LVL 86

    Accepted Solution

    According to my git docs, shouldn't that be

    git submodule init –-recursive


    Author Comment

    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".

    Author Comment

    Thanks for responding JKR.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
    After watching the Introduction to GIMP this tutorial will show you additional tools to use in GIMP.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now