So I find myself being forced to use a Windows machine just because thats what the financial institution feels is more secure for an outside contractor.
I am using powershell and I just received some svg
assets from their in-house designer which I committed and pushed in the branch I was working in and then attempted to merge into another branch when I got this error:
error: cannot stat 'media/images1': Permission denied
Now I can't even checkout into the other branch where I started this work and I cannot even do a cd
into media/images1
one to take a look at what kind of permissions these svg
files have.
So I am wondering if someone could guide me as to how does this even get done where you deny someone the ability to run a git pull
, cd
or even git checkout <other-branches>
just because you do not have permissions with these files?
Even better still, who would I typically ask to rectify this in a company? Whose job would it normally be to even do this?
Talk to a desktop person, rather than speculate on their intent. Together look for access control policy that might have denied access:
Discuss the use case of git needing access to the repo and working directory. As it is tracking the history of the entire thing.
Establish a directory where git repos go. Could be "Documents" or anywhere else you can write. Might have to be allowed if it was being denied by policy like you suspect.
Consider asking for a Linux development environment, VM or WSL or laptop, if that would make you more productive. Side-steps NTFS problems with a Linux file system. Maybe not technically necessary when git on Windows is decent. Might not be allowed if the organization cannot support it.