651.288.7000 info@intertech.com

While the Git gc command optimizes and removes dead objects from the repo, the fsck command reports on repo problems.

I used to run it with the –full option, but this is now the default.  I typically run it as is or with the –tags option.  You may occasionally appreciate the –strict and –verbose options as well.

Note – it is not a repair tool.  It will report any missing or corrupted data/git objects, but not repair them.  Your backups, central repo, or teammates’ repos are your recovery options.

 

Like What You've Read?

Subscribe to the Blog.

Every Friday we send that week's content from our Developers via email. Try it out!

Some ad blockers can block the form below.

You have Successfully Subscribed!

Pin It on Pinterest

Share This