简体   繁体   中英

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

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> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM