Skip to content

Commit 061d6ba

Browse files
committed
Deploying git tracked subfolder to gh-pages
1 parent 8746905 commit 061d6ba

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote)
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)
59+
* [Deploying git tracked subfolder to gh-pages](https://github.com/git-tips/tips#deploying-git-tracked-subfolder-to-gh-pages)
5960

6061
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6162
<!-- @doxie.inject end toc -->
@@ -401,5 +402,10 @@ __Alternatives:__
401402
gitk --all
402403
```
403404

405+
## Deploying git tracked subfolder to gh-pages
406+
```sh
407+
git subtree push --prefix subfolder_name origin gh-pages
408+
```
409+
404410
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
405411
<!-- @doxie.inject end -->

tips.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,10 @@
222222
"title": "Visualize the version tree.",
223223
"tip": "git log --pretty=oneline --graph --decorate --all",
224224
"alternatives":["gitk --all"]
225+
},
226+
{
227+
"title": "Deploying git tracked subfolder to gh-pages",
228+
"tip": "git subtree push --prefix subfolder_name origin gh-pages",
229+
"alternatives": "git subtree push --prefix subfolder_name origin branch_name"
225230
}
226231
]

0 commit comments

Comments
 (0)