Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error cannot stat upon git pull

I tried to perform a git pull from a remote branch with the following command:

$ git pull origin branch_name username@private_repository's password: From ssh://private_repository/path/project  * tag               branch_name       -> FETCH_HEAD error: cannot stat 'path/name/of/file': Permission denied error: cannot stat 'path/name/of/file': Permission denied 

But I get the following error:

error: cannot stat 'path/name/of/file': Permission denied  error: cannot stat 'path/name/of/file': Permission denied 

Does anyone know what this means and what can I do about it?

Thanks

like image 755
Fil Avatar asked May 11 '16 03:05

Fil


2 Answers

For those working with:

  • IntelliJ IDEA
  • Visual Studio
  • Notepad++

Closing the solution may resolve this error. The IDE's git tools may still have hold of the file(s) in question.

like image 61
Tom Bowers Avatar answered Sep 30 '22 19:09

Tom Bowers


I've started using Atom and found it to be the issue. The Atom file tree needed to be refreshed and the git issue resolved.

like image 29
Bruce Lerner Avatar answered Sep 30 '22 17:09

Bruce Lerner