... | ... | @@ -18,3 +18,9 @@ In case you would like to include a subtree into one of your projects -- e.g., y |
|
|
```bash
|
|
|
git subtree add --prefix vivaplus <cloning_link_vivaplus> <branch_name> --squash
|
|
|
```
|
|
|
This creates a subtree containing the branch <branch_name> in a folder called vivaplus (you can also change that name, just add the desired name after --prefix). The branch name is probably in most cases master -- but you can also use any other existing branch, or even a certain commit hash if you would like to point to a given commit. The option --squash only copies the latest version of the branch, without the history (if you leave it out, it comes with history, which makes the folder larger).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|