Thread:Talk:Download from Git/Keeping up to date/reply

Using a forced git-clean is rather risky as it might also delete your LocalSettings.php and uploaded user files. Be careful with that.

Using git-clean should not be necessary. And for extensions the same process applies (use git pull).