Git 常用指令跟設定
基礎概念
-
Working directory: 工作目錄
-
Staging area: 暫存區
-
remote and origin: remote 指的是遠端的 repo,概念,origin 是真的一個指標指向一個 url
$ git remote -v origin https://github.com/example/repo.git (fetch) origin https://github.com/example/repo.git (push) -
HEAD: 指向現在整個工作環境所在的 commit
