git添加远程仓库

3种方式

# 未创建项目目录
git clone
https://github.com/xxx/zzz.git [这里指定目标文件夹,不填写,默认创建 zzz目录]

#
已存在项目文件,未设置远程仓库的 echo "# wechat-app" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/xxx/zzz.git git push -u origin master

# 项目已设置远程仓库,想设置新的仓库地址的
git remote add origin https://github.com/xxx/zzz.git
git push -u origin master
原文地址:https://www.cnblogs.com/cqingt/p/8350168.html