1

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?

Bernard Vander Beken
  • 4,848
  • 5
  • 54
  • 76
ERJAN
  • 23,696
  • 23
  • 72
  • 146
  • Whether you should even be committing a config file is questionable, but if you committed this config file you should be able to just do `git pull`. – Tim Biegeleisen Oct 06 '17 at 09:52

1 Answers1

1

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.

kowsky
  • 12,647
  • 2
  • 28
  • 41