After running the command git pull
, I get the following messages:
* branch abc_branch -> FETCH_HEAD
Updating 64d3953..e881e1a
warning: unable to unlink dist/stylesheets/2ada1348.abc.min.css: Permission denied
error: unable to create file dist/index.html (Permission denied)
...
error: unable to unlink old 'dist/partials/views/foo.html' (Permission denied)
...
I use Macbook Pro. After either changing the directory write permission or delete local file, I get the same type of result of running git pull
. For the "unable to create file dist/index.html" error, I run the following command:
sudo chmod go+w dist
and for the "unable to unlink old 'dist/partials/views/foo.html'" error, I run
sudo rm dist/partials/views/foo.html
One thing I don't understand is that I only have this permission denied problem with a GitHub repository while I don't have a such problem for other 3 repositories under the same GitHub user account. The only differences between the repository and the other three is that my interaction with this one has been idle for four weeks or so.