zoukankan      html  css  js  c++  java
  • 如何用github展示前端页面

    如何在github上展示你的前端页面

    参考:https://luozhihao.github.io/demo/ 感谢作者

    1、New reposipory

    2、进入你本机目录 我是在d:vuedemo

    3、git init

      git add *

      git commit -m "first commit"

        git remote add origin <server>

        git push -u origin master

    **4、关键步骤

      输入gh-pages后创建即可,这样的方式会直接拷贝master分支的所有文件到gh-pages分支,而你也可以用命令行的形式创建并重新上传一份新的代码

    (1)新建并切换到gh-pages分支

    git checkout --orphan gh-pages
    

    (2)之后的操作和之前一样,只是push的时候是gh-pages

    git add *
    git commit -m "update"
    git push -u origin gh-pages
    

         如此,我们的demo项目就多了一个gh-pages分支,里面的代码文件就可以用来展示页面了。

      https://yangjunwu.github.io/demo/

  • 相关阅读:
    Python ES操作
    SVN总结
    MongoDB问题总结
    MySQL
    PyQt小工具
    Python logging模块
    shell脚本
    cmd命令
    eclipse java 项目打包
    Robot Framework:failed: Data source does not exist.错误
  • 原文地址:https://www.cnblogs.com/junwu/p/6084728.html
Copyright © 2011-2022 走看看