美文网首页
github-正确使用方式

github-正确使用方式

作者: 木易先生灬 | 来源:发表于2018-09-24 22:33 被阅读0次

第一次:

git clone 远程仓库的地址

git status 查看状态

git add . // 纳入版本控制

git commit -m"日志信息" // 提交到本地仓库

git push 远程仓库的地址/ master // 提交到远程仓库

修改文件:(需要用户名和密码)

注意: 配置邮箱和用户名

git config --global user.email "你的邮箱地址"
git config --global user.name "你的名字(随意)"

第二次以后下载代码:

git pull 远程仓库的地址

相关文章

网友评论

      本文标题:github-正确使用方式

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