github入门篇

关于git的一些命令行经常忘记,还是自己做个小小的笔记。

  1. On GitHub,com, create repository

  2. clone git repository

    git clone URL
    cd REPOSITORY-NAME
    git status
  3. Optional: create local branches

    git branch BRANCH-NAME
    git status
    git checkout BRANCH-NAME
    git status
    
  4. make local change and commit(when finish type comment, press ESC, type :wq)

    git status
    git add FILE_NAME
    git status
    git commit
  5. push to remote

    git push -u origin BRANCH-NAME
  6. Option: Merge Pull Request

    原文作者:mikeliu
    原文地址: https://segmentfault.com/a/1190000008242884
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞