Git - ignore on push/pull but not clone

前端 未结 1 925
说谎
说谎 2021-01-16 08:37

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

相关标签:
1条回答
  • 2021-01-16 09:07

    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.

    0 讨论(0)
提交回复
热议问题