My current project/repository repoA depends on a different self-made repository repoB . This repoB contains some very general functions such that I can be used by other projects as well. That is the reason why I put these general functions in a different repository. So after cloning this repoB with git in repoA, my directory setup looks as following,

- repoA
---- repoB

When running the command git status inside ~/repoA, it warns me that I have untracked files which makes sense as I just have cloned this new repository.

My question is: should I add/commit this other repository repoB to repoA What is the best practice with using multiple repositories? My gut feeling says that having the code of repoB existing twice (because it exists inside repoA as well) is unnecessary .

In the case that I do not want to add this repoB to repoA; is .gitignore the way to go therefore?

EDIT: extra context, repoB contains python code representing dynamics and calculating commands for a robot and repoA contains (python) code to create a ROS package

0

There are 0 best solutions below