mirror of
https://github.com/namibia/tips.git
synced 2024-11-14 01:04:12 +00:00
Deploying git tracked subfolder to gh-pages
This commit is contained in:
parent
8746905b37
commit
061d6ba4bb
@ -56,6 +56,7 @@
|
||||
* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote)
|
||||
* [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)
|
||||
|
||||
<!-- 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 -->
|
||||
@ -401,5 +402,10 @@ __Alternatives:__
|
||||
gitk --all
|
||||
```
|
||||
|
||||
## Deploying git tracked subfolder to gh-pages
|
||||
```sh
|
||||
git subtree push --prefix subfolder_name origin gh-pages
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
@ -222,5 +222,10 @@
|
||||
"title": "Visualize the version tree.",
|
||||
"tip": "git log --pretty=oneline --graph --decorate --all",
|
||||
"alternatives":["gitk --all"]
|
||||
},
|
||||
{
|
||||
"title": "Deploying git tracked subfolder to gh-pages",
|
||||
"tip": "git subtree push --prefix subfolder_name origin gh-pages",
|
||||
"alternatives": "git subtree push --prefix subfolder_name origin branch_name"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user