how to not pull a file that commited?

48 Views Asked by At

I have a zip file (contains jdk) that is already committed to the remote repo, I only use this file in the remote repo (as a cicd procedure)

and what I want is that I will not be able to pull it (the zip file) from the remote, because in my local repo I have no use in it.

I think it's like the opposite to git rm --cached because what I need is the file to stay in the remote and not be in the local.

I found this thread Ignore changes to a file that is already committed but i did not understand it that much.

Does anybody know how I can not pull the file?

0

There are 0 best solutions below