Gatman
Gatman

Reputation: 594

use git submodule with read-only access

How to push changes in a git submodule where i have only read-only access.

My problem is when I try to do git submodule update. I get a fatal: reference is not a tree error

Upvotes: 5

Views: 3050

Answers (1)

VonC
VonC

Reputation: 1326776

If that submodule is on GitHub, you would need to:

  • fork it, and use that repo as your submodule
    • make you modification in that submodule and push
    • commit the parent repo
  • modify the submodule url (by editing the .gitmodules in the parent repo)

Then your git submodule update will work.

Upvotes: 1

Related Questions