在GitHub上新建一个仓库打开git Bash Here,切换到你想要的文件路径git clone 仓库地址复制下来后把自己的文件复制粘贴进仓库的那个文件夹下切换到仓库文件路径git statusgit add .git commit -m '提交代码'git push在GitHub上找到setting,Git Page,将source设置为master.