We have a repo with a file say x.APK
that is pulled by client machines.
These client machine will modify this file and keep it locally for their use.
In normal usage we will update this file very rarely say once in 2-3 months.
The first time it will pull the files many along with x.APK
and modify it and store it locally. We then update other files and push. On pull in client we get a local change but since x.APK
did not change there are no conflicts.
Now is there any way to update x.APK
ignoring whatever local changes were made to that file with only git pull
.
git pull
are done by a script and we cannot access the clients always. so running other commands will be tricky.
We tried:
git update-index --assume-unchanged
this ignores the changes but is not able to pull
Using gitignore
it will delete the file from the clients and repo which we don't want.
It is a peculiar case if someone could help out it would be great.