X

好文:Git 資料夾內容、檔案作用說明

Git 會產生一個 .git 的資料夾,裡面的內容是什麼呢?

好文:Git 資料夾內容、檔案作用說明

.git 的資料夾裡面,有下述的內容:

  • HEAD: .git/head
  • branch: .git/refs/heads/main
  • commit: .git/objects/10/93da429…
  • tree: .git/objects/9f/83ee7550…
  • blobs: .git/objects/5a/475762c…
  • reflog: .git/logs/refs/heads/main
  • remote-tracking branches: .git/refs/remotes/origin/main
  • tags: .git/refs/tags/v1.0
  • the stash: .git/refs/stash
  • .git/config
  • hooks: .git/hooks/pre-commit
  • the staging area: .git/index

可以參考此篇文章的說明:Inside .git,可以知道 .git 資料夾的內容、裡面的檔案是作什麼作用

Tsung: 對新奇的事物都很有興趣, 喜歡簡單的東西, 過簡單的生活.
Related Post