Brian,

I'm not sure if you can do what you want. However there is ongoing updates to 
the submodule capabilities at the moment. It may be worth visiting the main Git 
list to feed in your requirement, and discuss how/why it makes sense in your 
use-case.

https://public-inbox.org/git/ is one repository of all the previous emails.

https://public-inbox.org/git/20170110014542.19352-1-sbel...@google.com/ (from 7 
Jan 2017 !) may be a useful start.

Philip
  ----- Original Message ----- 
  From: Brian Davis 
  To: Git for human beings 
  Sent: Friday, January 13, 2017 4:11 AM
  Subject: [git-users] git submodules pushing and pulling from multiple servers



  With: 

  git push origin branchname

  or

  git push server2 branchname 

  I can push or pull from multiple servers so no problem as git supports this.

  Now the problem with use of submodules 

  submodules are listed:

  
submodule.directory_to_checkout/proj1_dir.url=https://git.someserver1/git/proj1_dir

  but if say I want to pull from some server 2 and do a 

  git submodule update --init --recursive

  what I would get is from someserver1 not someserver2 as there is no "origin" 
support for submodules.  Is this correct?  If so can origin support be added to 
submodules?


  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to