首先得添加ssh
create a new repository on the command line
echo "# 3yan2yuAPP" >> README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:dyboy2017/3yan2yuAPP.git git push -u origin master
push an existing repository from the command line
git remote add origin git@github.com:dyboy2017/3yan2yuAPP.git git push -u origin master
HTTPS方式:
唯一的不同点就是
create: git remote add origin https://github.com/dyboy2017/3yan2yuAPP.git push: git remote add origin https://github.com/dyboy2017/3yan2yuAPP.git