On staging file, you can put your configuration for staging environment. Like database connection, base url, etc. Also, you can put any additional config values of staging phase only.
You have to exclude the
app/config/staging.php from git by adding it on
So, you can pull at any time in staging server.
But, be careful wrong configuration can deleted some files or directories.