git hub

作者: DouDouZH | 来源:发表于2017-09-20 18:31 被阅读0次
注册

用谷歌浏览器进入官网注册https://github.com/join?source=header-home

告诉git你是谁
git config --global user.name "账号"
git config --global user.email "邮箱"
创建本地仓库

git init

添加文件到缓存区

git add 文件名包括后缀

把文件从缓存区添加到本地仓库

git commit -m"注释"

查看本地库的当前状态

git status

查看文件不同

应该在git add 之后git commit -m" "之前
git diff

查看添加日志

git log

版本的退回

git reset --hard HEAD^

文件上传远程仓库
git init
git add README.md
git commit -m "first commit"
git remote add origin 远程地址
git push -u origin master

再次上传到这个远程库时只需要git push

相关文章

  • react-native-vector-icons 矢量图标的使

    资源 git hub地址作者git hub,有诸多UI资源 安装 此时将在"../../node_modules/...

  • git hub 和 git lab相比哪个更好?该如何选择?

    ​ git hub 和 git lab相比哪个更好?该如何选择? 这一期呢,我们来说一下git hub和git l...

  • git hub

    注册 用谷歌浏览器进入官网注册https://github.com/join?source=header-home...

  • 转移

    发现git-hub是个好东西,简书断更!! 有兴趣可关注[git-hub](https://github.com/...

  • docker推送本地镜像

    在docker hub上传镜像 类似于git hub ,docker hub是docker公司提供的一个线上镜像寄...

  • git hub提交

    git push -u origin master To https://github.com/scottlove...

  • Git Hub 笔记

    刚看完入门视频: http://www.imooc.com/learn/390 Git Hub注册了很久 一直放在...

  • git hub使用

    1.注册 GitHub 账号, 把github用户名发送给老师 JRG-zhangshijun 2.看Git...

  • 2017-06-18

    掌握一个技能,学会使用git hub

  • iOS Shimmer...

    Shimmer Git hub Page Shimmer is an easy way to add a shim...

网友评论

      本文标题:git hub

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