How to preserve all ignored files in git clean -fd?

Git normally doesn’t clean ignored files unless the -x flag is specified, but strangely it cleans out when configured as you did (folder/*). As @VonC pointed out, you should change your .gitignore-file to ignore the directory (data/) rather than its contents (data/*). It’s a subtle difference, but it matters to git.

Reduce git repository size

Update Feb. 2021, eleven years later: the new git maintenance command (man page) should supersede git gc, and can be scheduled. Original: git gc –aggressive is one way to force the prune process to take place (to be sure: git gc –aggressive –prune=now). You have other commands to clean the repo too. Don’t forget though, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)