Skip to content

Commit 1f08b12

Browse files
committed
Updated title text
1 parent 8e73868 commit 1f08b12

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
* [Retrieve the commit hash of the initial revision.](https://github.com/git-tips/tips#retrieve-the-commit-hash-of-the-initial-revision)
5858
* [Visualize the version tree.](https://github.com/git-tips/tips#visualize-the-version-tree)
5959
* [Deploying git tracked subfolder to gh-pages](https://github.com/git-tips/tips#deploying-git-tracked-subfolder-to-gh-pages)
60-
* [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)
61-
* [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)
60+
* [Adding a project to repo using subtree](https://github.com/git-tips/tips#adding-a-project-to-repo-using-subtree)
61+
* [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)
6262

6363
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6464
<!-- @doxie.inject end toc -->
@@ -409,14 +409,14 @@ gitk --all
409409
git subtree push --prefix subfolder_name origin gh-pages
410410
```
411411

412-
## Adding a project to repo using subtree. For example we are adding in vendor directory
412+
## Adding a project to repo using subtree
413413
```sh
414-
git subtree add --prefix=vendor/<project_name> --squash git@github.com:<username>/<project_name>.git master
414+
git subtree add --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master
415415
```
416416

417-
## Get latest changes in your repo for a linked subproject using subtree. For example we have the subproject in vendor directory
417+
## Get latest changes in your repo for a linked project using subtree
418418
```sh
419-
git subtree pull --prefix=vendor/<project_name> --squash git@github.com:<username>/<project_name>.git master
419+
git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master
420420
```
421421

422422
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->

tips.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@
229229
"alternatives": "git subtree push --prefix subfolder_name origin branch_name"
230230
},
231231
{
232-
"title": "Adding a project to repo using subtree. For example we are adding in vendor directory",
233-
"tip": "git subtree add --prefix=vendor/<project_name> --squash git@github.com:<username>/<project_name>.git master"
232+
"title": "Adding a project to repo using subtree",
233+
"tip": "git subtree add --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master"
234234
},
235235
{
236-
"title": "Get latest changes in your repo for a linked subproject using subtree. For example we have the subproject in vendor directory",
237-
"tip": "git subtree pull --prefix=vendor/<project_name> --squash git@github.com:<username>/<project_name>.git master"
236+
"title": "Get latest changes in your repo for a linked project using subtree",
237+
"tip": "git subtree pull --prefix=<directory_name>/<project_name> --squash git@github.com:<username>/<project_name>.git master"
238238
}
239239
]

0 commit comments

Comments
 (0)