mirror of
https://github.com/namibia/tips.git
synced 2025-02-02 11:38:25 +00:00
Adding a project to repo using subtree
This commit is contained in:
parent
061d6ba4bb
commit
b31618b975
@ -57,6 +57,7 @@
|
|||||||
* [Retrieve the commit hash of the initial revision.](https://github.com/git-tips/tips#retrieve-the-commit-hash-of-the-initial-revision)
|
* [Retrieve the commit hash of the initial revision.](https://github.com/git-tips/tips#retrieve-the-commit-hash-of-the-initial-revision)
|
||||||
* [Visualize the version tree.](https://github.com/git-tips/tips#visualize-the-version-tree)
|
* [Visualize the version tree.](https://github.com/git-tips/tips#visualize-the-version-tree)
|
||||||
* [Deploying git tracked subfolder to gh-pages](https://github.com/git-tips/tips#deploying-git-tracked-subfolder-to-gh-pages)
|
* [Deploying git tracked subfolder to gh-pages](https://github.com/git-tips/tips#deploying-git-tracked-subfolder-to-gh-pages)
|
||||||
|
* [Adding a project to repo using subtree. Lets say we are adding in vendor directory](https://github.com/git-tips/tips#adding-a-project-to-repo-using-subtree-lets-say-we-are-adding-in-vendor-directory)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -407,5 +408,10 @@ gitk --all
|
|||||||
git subtree push --prefix subfolder_name origin gh-pages
|
git subtree push --prefix subfolder_name origin gh-pages
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Adding a project to repo using subtree. Lets say we are adding in vendor directory
|
||||||
|
```sh
|
||||||
|
git subtree add --prefix=vendor/<project_name> --squash git@github.com:<username>/<project_name>.git master
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -227,5 +227,9 @@
|
|||||||
"title": "Deploying git tracked subfolder to gh-pages",
|
"title": "Deploying git tracked subfolder to gh-pages",
|
||||||
"tip": "git subtree push --prefix subfolder_name origin gh-pages",
|
"tip": "git subtree push --prefix subfolder_name origin gh-pages",
|
||||||
"alternatives": "git subtree push --prefix subfolder_name origin branch_name"
|
"alternatives": "git subtree push --prefix subfolder_name origin branch_name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Adding a project to repo using subtree. Lets say we are adding in vendor directory",
|
||||||
|
"tip": "git subtree add --prefix=vendor/<project_name> --squash git@github.com:<username>/<project_name>.git master"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user