how to clear git server unwanted files in ubuntu code example Example: git clean cache $ git rm -r --cached .