zoukankan      html  css  js  c++  java
  • 6、git和github

    参考:http://www.cnblogs.com/qianmojing/p/6484162.html
    http://www.jb51.net/article/70729.htm
    http://www.cnblogs.com/jhj117/p/4944790.html
    https://www.zhihu.com/question/20070065


    git config --global user.name "username"
    git config --global user.email "1234567@qq.com"
    #表示这台机器上所有的Git仓库都会使用这个配置
    cd F: mkdir git
    echo "# supreme-octo-carnival" >> README.md ##touch README.md
    git init                                   #初始化版本库,用于生成.git文件
    git add README.md ##git add * #
    README.md 添加到暂存区里面去
    git commit -m "first commit"               # git commit告诉Git,把文件提交到仓库。-m是提交的注释
    git status #命令git status来查看是否还有文件未提交
    git diff 
    #想看下README.md文件到底改了什么内容
    git log 对readme.txt文件做了修改,想查看下历史记录
    git remote add origin https://github.com/samll-rookie/supreme-octo-carnival.git #将仓库连接到远程服务器
    git push -u origin master #将改动推送到所添加的服务器上


  • 相关阅读:
    软工结对第一次作业
    16061023-软件工程第1次作业
    OO最后一次总结
    OO第三次博客作业
    OO第二次博客作业
    OO第一次博客
    提问回顾与个人总结
    软件工程第一次阅读作业
    test个人博客
    软件工程结对作业
  • 原文地址:https://www.cnblogs.com/renping/p/7535784.html
Copyright © 2011-2022 走看看