Home > Software engineering >  How to track and commit multiple repos
How to track and commit multiple repos

Time:11-11

I gave a project that's split in "server" and "client" repos. Most times I make a change involving both repos, but to commit and push them, I need to open multiple tabs on sourcetree, stage all, commit, message etc...

Is there a way of tracking all repos in a folder and push the relevant changes to the relevant repo with the same commit message?

I've tried submodules, and I do see them in sourcetree (pic attached) enter image description here

but their commit/push must be made one by one...

CodePudding user response:

I am too new to stackOverflow so I can't leave comment but post answer instead. I think your question is relevant to this post: Two git repositories in one directory?

CodePudding user response:

Since these are two different repositories, there is no way to do a single commit for both of them.

I would suggest you to have a monorepo structure for your application.

  • Related