Git's shallow clones can inadvertently disable important optimizations during push operations, particularly affecting the first push in a repository. Using '--depth 2' when cloning maintains one un-mangled commit between the shallow graft point and branch tip, enabling faster initial pushes by preserving Git's optimization capabilities.
#git #performance #repository #optimization #versioncontrol