git gc
だけだと二週間がデフォルトなのですぐに消えない。
now
をつけて即時削除する。
$ git reset HEAD
$ git reflog expire --expire=now --all
$ git gc --aggressive --prune=now
参考: https://blog.clock-up.jp/entry/2017/12/03/git-gc
これで.git/
容量が 1.2GB -> 5.7MB になった。
Go to list of users who liked
More than 5 years have passed since last update.
git gc
だけだと二週間がデフォルトなのですぐに消えない。
now
をつけて即時削除する。
$ git reset HEAD
$ git reflog expire --expire=now --all
$ git gc --aggressive --prune=now
参考: https://blog.clock-up.jp/entry/2017/12/03/git-gc
これで.git/
容量が 1.2GB -> 5.7MB になった。
Register as a new user and use Qiita more conveniently
Go to list of users who liked