File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 56
56
* [ Purnes branches that have been deleted in the remote.] ( https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote )
57
57
* [ Retrieve the commit hash of the initial revision.] ( https://github.com/git-tips/tips#retrieve-the-commit-hash-of-the-initial-revision )
58
58
* [ 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 )
59
60
60
61
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
61
62
<!-- @doxie.inject end toc -->
@@ -401,5 +402,10 @@ __Alternatives:__
401
402
gitk --all
402
403
```
403
404
405
+ ## Deploying git tracked subfolder to gh-pages
406
+ ``` sh
407
+ git subtree push --prefix subfolder_name origin gh-pages
408
+ ```
409
+
404
410
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
405
411
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 222
222
"title" : " Visualize the version tree." ,
223
223
"tip" : " git log --pretty=oneline --graph --decorate --all" ,
224
224
"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"
225
230
}
226
231
]
You can’t perform that action at this time.
0 commit comments