2) Local Configurations

First of all, you never commit configuration files to git. So (if you didn’t before) add wp-config and local-config.php to .gitignore

a) Modify Wp-config

Your database user and password are (or should) be different on your localhost than they are on your production environment. One way to handle this is to have wp-config.php not be in version control and have everyone make their own. Boo. Stop taking things out of version control. Another solution I’ve seen is that people modify the wp-config.php and just try to be really careful not to commit their local changes.

You can visit ‘local.example.dev’ and you should see it’s work ( Of course you need to define local.example.dev in hosts file with vagrant ip address )

b) Uploads!

We need to access our media files but we shouldn’t keep them on git. (Think about a WordPress site and they have over 100G static content)
(ideally) We can access our static contents with proxy and there is a WordPress plugin working pretty well.