I have two repositories. I started the project locally on my development machine, and then cloned it into a test environment on the client server. I mimic the environment on the client server, but for this I need some files (and some lines in some other files) to be present only on my local machine, but they should not be displayed in the remote environment.
I deleted these files and lines immediately after I cloned the project and committed these changes in one commit to the remote repository, but after pushing (back to the original repository) I would have to ignore this commit on my local repository. I would like both repositories to be synchronized, with the exception of this single commit, so the project works on both, slightly different environments.
How should I do it? How can I ignore commit locally without changing it on the remote repo after push / pull?
source
share