Keeping .git as small as possible

Some live websites of ours receives automatic code updates. I want these automatically committed (don’t worry about the sanity of this, everything is unit tested and only small sites get auto updating).

When I put the repo on the live webserver, the size gets very big.

What is the best way to keep a minimal history of only 1 branch in the local history?

Thank you.

Source: New Questions

Leave a Reply