ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Multiple GIT repositories in a workspace

asked 2014-12-03 04:30:15 -0500

Dear fellow ROS-users,

I was wondering about the best practice to maintain multiple GIT repositories within a workspace (and possibly another GIT-repository). This problem is also present when forking repositories of GitHub for instance.

We have a current set-up:

  • Four workspaces.
  • One big repository containing all packages we have created, containing all the workspaces.

What we want:

  • Different repositories for different (groups of) packages.
  • Automatic updates (git pull) of repositories.

I have taken a look at GIT submodules. But in my opinion it is quite unclear when working on these. For instance:

  • On what repository am I working (committing/pushing/pulling) at the moment? This results in commits done on wrong repositories. Adding a folder of a submodule when adding on its parent result in the folder added to the parent GIT repository.

Is was wondering how other people are doing this. Second, what are your thoughts on the best way to do this and also having all the GIT repositories up-to-date?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-03 04:45:39 -0500

dornhege gravatar image is exactly what you are looking for.

edit flag offensive delete link more


It works like a charm. Thank you for your quick comment on this issue!

mathijsdelangen gravatar image mathijsdelangen  ( 2014-12-03 06:06:49 -0500 )edit

Question Tools

1 follower


Asked: 2014-12-03 04:30:15 -0500

Seen: 1,616 times

Last updated: Dec 03 '14