github style


Top to down, left to right

  • XXX’s GitHub repository : “offical” page
  • Your GitHub repository : “personal” page
  • Working directory : “battlefield”
  • Local repository : local project storage
  • Index : cache space
  1. "fork" : web “offical” -> “personal”
  2. "Pull request" : web handle to “offical”
  3. push : local storage to remote storage
  4. fetch : remote storage to local storage
  5. clone : copy a remote git project
  6. pull XXX-github : get “offical” update to local storage and merge to “battlefield”
  7. merge : merge local storage to “battlefield”
  8. pull my-github : get remote storage update to local storage
  9. checkout : reset file or hash version to “battlefield” directly from local storage
  10. checkout : reset file cover “battlefield” from cache
  11. commit -a : handle to local storage and update to remote directly(push)
  12. commit : handle to local storage
  13. add : put add/delete/modify to cache
  14. reset : reset file or hash version to cache from local storage