Github上传
如何将本地代码加入 git 仓库
- 1、 cd 项目根目录
- git init
- 2、加入仓库
- git add *
- 3、提交
- git commit -m ‘init commit’
- 4、本地仓库添加远程仓库
- git remote add origin github仓库地址(url)
- 5、拉取文件
- git pull origin master –allow-unrelated-histories
- 6、推送到远成仓库
- git push origin master