- 首先先初始化本地git仓库
git init
- 接着添加当前改动到commit
git add --all
git commit -m 'init'
- 增加远程仓库的地址信息
git remote add origin <Your remote URL>
- 拉取远程master分支
git pull origin master --allow-unrelated-histories
- 推送本地分支
git push -u origin master
git init
git add --all
git commit -m 'init'
git remote add origin <Your remote URL>
git pull origin master --allow-unrelated-histories
git push -u origin master