ERJAN
ERJAN

Reputation: 24500

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?

Upvotes: 1

Views: 1019

Answers (1)

kowsky
kowsky

Reputation: 14459

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.

Upvotes: 1

Related Questions