Let's say I have branches 1234
and 5678
. I have .gitignore with the
config/main.config.php
which is supposed to store this config file locally and not push merge pull it and so on anywhere, simply ignore it like it is doesn't exists.
In branch 1234
I see this config/main.config.php
but when I switch to the branch 5678
, this file disappears!
When I switch back to 1234
, this file appears again.
1234
is an old branch. 5678
is a new branch created from another branch (not 1234
).
I don't understand why this happens if config/main.config.php
is in the .gitignore and not under version control.
this way it works only on the remote server, on my local PC file not disappear when i switch between branches this file mentioned to be ignored in .gitignore on the both local and server.