美文网首页
GitHub使用思路

GitHub使用思路

作者: Mthinkway | 来源:发表于2019-03-08 11:39 被阅读0次

1、安装git

2、设置github账户用户名和密码

git config --global user.name "runoob"
git config --global user.email test@runoob.com

3、添加github远程库

git remote add [shortname] [url]

4、初始化本地仓库

git init

5、工作区文件添加到暂存区

git add filename

6、暂存区文件添加到本地仓库

git commit -m "提交说明"

7、本地仓库文件push到远程仓库

git push [alias] [branch]

相关文章

网友评论

      本文标题:GitHub使用思路

      本文链接:https://www.haomeiwen.com/subject/syzlpqtx.html