Is there any way to ignore a file for push/pull but copy it on clone? In this case I want a config file. When I clone the repo I\'d like to pull in the default config but fo
No. Ignored file is not in git repository, so it cannot be cloned. Just create config.example file and copy it to config after cloning.
config.example
config