sequenceDiagram
box Local
participant WD as Working Directory<br/>(工作目錄)
participant SA as Staging Area<br/>(暫存區)
participant LR as Local Repository<br/>(本地儲存庫)
end
box Remote
participant RR as Remote Repository<br/>(遠端儲存庫)
end
RR-->>WD: git clone <repository_url>
WD->>SA: git add
SA->>LR: git commit
LR->>RR: git push
RR-->>LR: git fetch
RR-->>WD: git pull
LR-->>WD: git checkout <branch_name>
LR-->>WD: git merge <branch_name>
Working Directory (工作目錄): 是指包含您當前工作項目的目錄。當您在編輯文件、新增、修改或刪除文件時,這些更改都發生在工作目錄中。