0

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...

trueicecold
  • 820
  • 10
  • 23

2 Answers2

0

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?

iyhc
  • 134
  • 3
0

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.

Abhishek S
  • 546
  • 3
  • 16