Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
fsai_ws_training/docs/git.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
16 lines (10 sloc)
1.02 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git | |
ROS projects such as the Coventry FSAI control code tend to be broken into seperate git repositories each of which handles a specific piece of functionality. | |
The final project is a 'meta' repository that links to all the seperate repositories and pulls them all together. | |
To do this, we add the seperate repositories as *git submodules* of the meta repository. | |
This approach makes it much easier to combine repositories written by the Coventry team and repositories provided by 3rd parties (e.g. the driver code for the ZED camera system). | |
It does however mean that setting up the project is not quite as straight forward as just cloning the meta repository. | |
If you are starting from scratch the easiest option is to clone the meta repository whilst tell it to go and get all of the submodules at the same time. | |
- `git clone --recurse-submodules https://github.coventry.ac.uk/ac0745/fsai_ws_training.git` | |
If you have already clones the meta repository and just want to get the submodules. | |
- `git submodule update --init --recursive` |