1

I am learning git from scratch and following some tutorial and I got this error:

 Yasser@pc MINGW64 ~/Documents/repos/Branching (Development)
 $ git checkout master
 Switched to branch 'master'
 Your branch is ahead of 'origin/master' by 1 commit.
   (use "git push" to publish your local commits)

 Yasser@pc MINGW64 ~/Documents/repos/Branching
 $ git st
 fatal: failed to stat 'C:/Users/toshiba/Documents/repos/Branching': Permission denied

 Yasser@pc MINGW64 ~/Documents/repos/Branching
 $ git branch
 fatal: failed to stat 'C:/Users/toshiba/Documents/repos/Branching': Permission denied

Why I get this error Permission denied errors after git checkout branch?

Pierre.Vriens
  • 2,117
  • 75
  • 29
  • 42
Yasser
  • 23
  • 3

0 Answers0