1、在github上新建项目 在 clone and download里面找到链接https://github.com/Huxiaodan120808/photo-sphere-viewer-demo.git
git clone https://github.com/Huxiaodan120808/photo-sphere-viewer-demo.git
2、复制项目文件到上面clone的文件里面
3、"git add ." ----把当前文件夹下所有的文件添加到git
4、git commit -m "备注内容" ---把代码提交到本地仓库
5、git push -u origin master 提交代码到github远程仓库上 master可以换成其他的分支
接着需要输入 git上的username \ password 即可