diff --git a/README.md b/README.md index e7a72eb..09c339e 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ * [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) * [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. For example we are adding in vendor directory](https://github.com/git-tips/tips#adding-a-project-to-repo-using-subtree-for-example-we-are-adding-in-vendor-directory) -* [Get latest changes in your repo for a linked subproject using subtree. For example we have the subproject in vendor directory](https://github.com/git-tips/tips#get-latest-changes-in-your-repo-for-a-linked-subproject-using-subtree-for-example-we-have-the-subproject-in-vendor-directory) +* [Adding a project to repo using subtree](https://github.com/git-tips/tips#adding-a-project-to-repo-using-subtree) +* [Get latest changes in your repo for a linked project using subtree](https://github.com/git-tips/tips#get-latest-changes-in-your-repo-for-a-linked-project-using-subtree) @@ -409,14 +409,14 @@ gitk --all git subtree push --prefix subfolder_name origin gh-pages ``` -## Adding a project to repo using subtree. For example we are adding in vendor directory +## Adding a project to repo using subtree ```sh -git subtree add --prefix=vendor/ --squash git@github.com:/.git master +git subtree add --prefix=/ --squash git@github.com:/.git master ``` -## Get latest changes in your repo for a linked subproject using subtree. For example we have the subproject in vendor directory +## Get latest changes in your repo for a linked project using subtree ```sh -git subtree pull --prefix=vendor/ --squash git@github.com:/.git master +git subtree pull --prefix=/ --squash git@github.com:/.git master ``` diff --git a/tips.json b/tips.json index c330dbc..6dbc437 100644 --- a/tips.json +++ b/tips.json @@ -229,11 +229,11 @@ "alternatives": "git subtree push --prefix subfolder_name origin branch_name" }, { - "title": "Adding a project to repo using subtree. For example we are adding in vendor directory", - "tip": "git subtree add --prefix=vendor/ --squash git@github.com:/.git master" + "title": "Adding a project to repo using subtree", + "tip": "git subtree add --prefix=/ --squash git@github.com:/.git master" }, { - "title": "Get latest changes in your repo for a linked subproject using subtree. For example we have the subproject in vendor directory", - "tip": "git subtree pull --prefix=vendor/ --squash git@github.com:/.git master" + "title": "Get latest changes in your repo for a linked project using subtree", + "tip": "git subtree pull --prefix=/ --squash git@github.com:/.git master" } ]