Git命令

首先得添加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
发表评论 / Comment

用心评论~


Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/blog.dyboy.cn/content/templates/dyblog/footer.php:56) in /www/wwwroot/blog.dyboy.cn/include/lib/view.php on line 23