本地git库添加到github

这学期lug第一次每周小聚后开始使用git

前面在本地创建完git之后,一直想通过命令行在github上面创建一个repository,被告知只能通过网页操作QAQ

创建完成后,自动会跳转到一个界面,教你如何通过命令行把本地git添加到远程仓库


touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:JING-TIME/abc.git
git push -u origin master

并且提供了http和ssh链接(后者可以免输密码)供粘贴

Git基础 Github Help

今天还知道 git add -a -m “massage”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.