[英]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. 我接受了开发人员的拉取请求,并将他的更改合并到我在GitHUB上的repo中。
I tried to do a pull from GitHUB to my local machine using: 我尝试使用以下方法从GitHUB到本地机器:
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. 我对Git还很新,所以我不确定该怎么做。
If it helps, my local dev environment is using MAMP PRO 如果有帮助,我的本地开发环境正在使用MAMP PRO
Probably wrong permissions set on your .git
folder. 可能在您的
.git
文件夹上设置了错误的权限。 Try: 尝试:
sudo chown -R <your_user> .git
And if that doesn't fix it, try: 如果这不能解决问题,请尝试:
sudo chown -R <your_user> .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.