Kray
Kray

Reputation: 121

How do I get changes from GitHUB to my local machine?

I accepted a pull request from my developer and merged his changes into my repo on GitHUB.

I tried to do a pull from GitHUB to my local machine using:

git pull https://github.com:username/RepoName.git

AND

git pull origin master

But I get this error:

error: cannot open .git/FETCH_HEAD: Permission denied

I am still quite new to Git, so I'm not sure exactly what to do here.

If it helps, my local dev environment is using MAMP PRO

Upvotes: 1

Views: 2365

Answers (1)

Rob Wouters
Rob Wouters

Reputation: 16327

Probably wrong permissions set on your .git folder. Try:

sudo chown -R <your_user> .git

And if that doesn't fix it, try:

sudo chown -R <your_user> .

Upvotes: 3

Related Questions