[git-users] error: could not lock config file .git/config: Permission denied

2018-12-03 Thread chiahunglin . ocs
sI find a similar thread[1], but its problem is different from mine. My problem is when trying to replace old origin with the new one with the command git remote set-url origin https://... git complains `error: could not lock config file .git/config: Permission denied`. All solutions

Re: [git-users] error: could not lock config file .git/config: Permission denied

2018-12-03 Thread Konstantin Khomoutov
On Mon, Dec 03, 2018 at 07:45:06AM -0800, chiahunglin@gmail.com wrote: [...] > git remote set-url origin https://... > > git complains `error: could not lock config file .git/config: > Permission denied`. All solutions found online suggest changing with > `chown`. But that's not the case