J. Allen
J. Allen

Reputation: 592

How can I share local commits to my TFS 2017 server from a submodule hosted in github?

There's a github project that I've added to my TFS repo as a submodule. I've made a few commits to the submodule/github project that have not yet been accepted into the public github project. How do I get those local commits off my machine to somewhere TFS can access them so TFS can build my entire project (including the modified submodule)?

Upvotes: 1

Views: 28

Answers (1)

VonC
VonC

Reputation: 1327384

You could:

  • create an Git empty repo in your TFS server,
  • change the submodule url from the GitHub one to your new local repo
    See "Changing remote repository for a git submodule"
  • push your local commits to that new repo
  • add/commit and push in your parent project (where you changed the submodule repo url)

Upvotes: 1

Related Questions