1.创建项目仓库,加入开发人员
2.初始化项目
git init
3. 添加到临时仓库
git add .
4. 添加到本地仓库
git commit -m “备注信息”
5. 推送到远程仓库
git push 远程仓库地址 master
git branch -v dev
git checkout dev
git push origin dev:dev
报错:
‘origin’ does not appear to be a git repository
fatal: Could not read from remote repository.
是因为 此时 本地仓库和远程仓库还没有建立关联
git remote add origin http://xxxxxxxxx/xxxxxxx/xxx.git
git remote add origin 远程仓库地址
之后再 push 即可