整理 .git 目錄

最近工作上都是用 git 進行版本管理,但是發現過了一段時間, .git 目錄越來越肥大了

在網路上發現,可以用

git gc

指令清除 .git 目錄中沒有用使用到或是多餘的檔案。

發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

Follow

Get every new post delivered to your Inbox.