Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8836545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:31:15+00:00 2026-06-14T09:31:15+00:00

An issue I am having with my project is in one branch ( BRANCH1

  • 0

An issue I am having with my project is in one branch (BRANCH1), I added 2 submodules (MOD1, MOD2). Now BRANCH1 has been put on hold.

Now that I am working on BRANCH2, I would like only the submodules (the rest of the changes are not ready yet). How would I add MOD1 and MOD2 to my current branch?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:31:17+00:00Added an answer on June 14, 2026 at 9:31 am

    If there was a single commit on BRANCH1 whose sole effect was adding one (or both) submodules, then you can git cherry-pick that commit (or those commits, if you added the submodules in separate commits) onto BRANCH2. If the submodule additions were done as part of a bigger commit that you don’t want the rest of, you can use git cherry-pick --no-commit, then clean out the changes you don’t want before committing. Or you could always just run the appropriate git submodule add commands on BRANCH2 (which may or may not result in a fresh clone of the submodules – I can’t say I’ve ever run into that situation, so I don’t know for sure…).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have been having this issue pop up sporadically, but now I can reproduce
I am having an issue with one of my .php pages. adddata.php has a
Strange issue I am having with my MVC3 project. I have followed a simple
I'm having an issue calling a method from a separate project within the same
I'm having an issue with the Attrib task from the MSBuild Community Tasks Project
I am currently working on an android project and I am having an issue
I'm having the following issue with my hibernate 3.6.10 project: org.springframework.beans.factory.BeanCreationException: Error creating bean
im having a little issue here. I have MediaElement.js set on my project. It
I'm having an excessively strange issue. I'm working on a project and it's being
I am having an issue loading an external swf into my as3 project. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.