DEV Community

Discussion on: What is your favourite Git command?

Collapse
 
pavelloz profile image
Paweł Kowalski • Edited

git fetch --prune

To cleanup old local branches.

git gc

To cleanup unnecessary files and optimize the local repository