Adding / Updating

Last updated

What is Adding / Updating?

To add a submodule to a repository, use git submodule add https://github.com/user/submodule-repo.git, which is the typical format for specifying the URL of the submodule repository. This creates a new folder for the submodule and checks it out at the specified revision. To update an existing submodule to its latest commit, run git submodule update. If you want to pull in changes from upstream while keeping your submodule's history intact, use git submodule sync followed by git submodule update.

Free resources to learn Adding / Updating

More in stage 16: Submodules

Adding / Updating: common questions

Can I learn Adding / Updating in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Adding / Updating in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Adding / Updating tutorial for beginners?

It is lesson 99 of 155 in the free Git and GitHub roadmap, in stage 16, Submodules. If you are new to Git and GitHub, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me