P
P
Prepod212020-02-15 23:30:38
git
Prepod21, 2020-02-15 23:30:38

How to ignore file from external git repository?

There is some config in the external repository. Everyone who pulls from an external repository has a different config. How to ignore config changes on pull? The method from https://habr.com/ru/sandbox/112968/ only helps if we are working in the same branch, if the branch changes, then you need to save the config changes to a separate file again, accept the config from remote, apply your config and do "git update-index --assume-unchanged".
Is there a way to just force the local repository not to download a file from a remote one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-02-22
@Prepod21

Do as everyone else does - store the config template (config.example.php) in the repository, and ignore the config itself.
PS: Anatoly wrote about this in the comments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question