现在的位置: 首页 > 综合 > 正文

github 基本操作

2018年06月08日 ⁄ 综合 ⁄ 共 461字 ⁄ 字号 评论关闭

 由于自己的 http://blog.mttqq.com 中的代码都放到 百度云盘,现在的不是很专业。所以今天想把代码放到 github 放。

想更多多的了解 extjs 的朋友可以加一下 QQ 群:311176787 

1、第一次使用

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xxxxxx/lesson.git
git push -u origin master

注意:添加 deploy keys 

ssh-keygen -t rsa -C "your_email@example.com"
使用 vi 打开 ~/.ssh/id_rsa.pub ,add key 添加 内容

2、第二次提交代码

git add README.md
git commit -m "first commit"

git push -u origin master

3、更多 git 操作

http://www.cnitblog.com/asfman/articles/73296.html

抱歉!评论已关闭.