发布项目到github上web服务器来运行
$ git add dist Administrator@LuoTong-10035 MINGW32 /D/react_workspace (master) $ git commit -m "git add dist" On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean Administrator@LuoTong-10035 MINGW32 /D/react_workspace (master) $ git subtree push --prefix=dist origin gh-pages git push using: origin gh-pages Username for 'https://github.com': mrluotong Counting objects: 58, done. Delta compression using up to 4 threads. Compressing objects: 100% (58/58), done. Writing objects: 100% (58/58), 1.51 MiB | 88.00 KiB/s, done. Total 58 (delta 19), reused 0 (delta 0) remote: Resolving deltas: 100% (19/19), done. remote: This repository moved. Please use the new location: remote: https://github.com/mrluotong/gallery-by-react.git remote: remote: Create a pull request for 'gh-pages' on GitHub by visiting: remote: https://github.com/mrluotong/gallery-by-react/pull/new/gh-pages remote: To https://github.com/mrluotong/react_workspace.git * [new branch] abde1574a217fa823f72cb49544ebb1138cbb011 -> gh-pages