[英]How can I make sure git config file gets pushed to repo when doing commits?
I changed git config file on my working machine. 我在工作机器上更改了git config文件。
I changed some code, committed it. 我更改了一些代码,将其提交。
When I come home, how can I pull the config file into my home station? 当我回到家中时,如何将配置文件拉入我的家中工作站?
The git config
file is inside a repository's .git
folder. git
config
文件位于存储库的.git
文件夹中。 This folder is not part of the repository itself. 该文件夹不是存储库本身的一部分。 Thus, changes on the
config
file will not be commited and pushed and subsequently, you won't be able to acquire it via git pull
. 因此,将不会提交和推送对
config
文件的更改,随后,您将无法通过git pull
获取它。
If you want to have a configuration file that gets shared via your remote repository, take a look at this question . 如果您希望有一个通过远程存储库共享的配置文件,请查看此问题 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.