zoukankan      html  css  js  c++  java
  • git 使用总结

    1: 从网上下载代码到本地

    git clone https://github.com/openresty/ngx_openresty.git

    如果不能下载

    ssh-keygen -t rsa
     cat ~/.ssh/id_rsa.pub

    然后在你的账户里面添加KEY,把id_rsa.pub内容复制进去

    2: 新建代码库

    echo "# test2" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/zenglingbo/test2.git
    git push -u origin master

    3: 代码更新

    git clone代码到本地 或者 在自己已有的文件下 git pull 代码到本地
    git add 新加的文件/更改的文件
    git commit -m "提示信息"
    git push -u origin master
    (期间可以用git status 和 git log 来查看代码的状态和历史)
  • 相关阅读:
    Banner实现无线轮播
    二维码生成
    自定义View圆环
    百度地图
    OkHttp解析
    自定义控件生成随机数
    OkHttp中文文档
    Da购物车
    Angular过滤器
    popupWindow
  • 原文地址:https://www.cnblogs.com/zeng2013/p/4728315.html
Copyright © 2011-2022 走看看