Use read-only git submodule

How do I push changes to a git submodule where I have read-only access.

My problem is when I try to do git submodule update

. I get an errorfatal: reference is not a tree

+3


source to share


1 answer


If this submodule is on GitHub, you need to:

  • remake , and use this repo as your submodule
    • make a modification in this submodule and press
    • transfer the parent repo
  • change url submodules ( edit .gitmodules in parent repo)


Then yours git submodule update

will work.

0


source







All Articles