简体   繁体   中英

How can I make sure git config file gets pushed to repo when doing commits?

I changed git config file on my working machine.

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. 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 .

If you want to have a configuration file that gets shared via your remote repository, take a look at this question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM