github入门篇

关于git的一些命令行常常忘记,仍是本身作个小小的笔记。git

  1. On GitHub,com, create repository命令行

  2. clone git repositorycode

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

    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)it

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

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

相关文章
相关标签/搜索