1

关于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
27 声望1 粉丝