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

相關文章
相關標籤/搜索