第一次将本地项目push到远程仓库 git init // 初始化 git remote add origin http://xxxx.git // 跟远程仓库建立连接 git remote -v // 查看是否连接成功 // 成功 origin https://github.com/xxx (fetch) origin https://github.com/xxx (push) git push -u origin master // 第一次将代码push到远程仓库