简体   繁体   English

如何从GitHUB到本地计算机进行更改?

[英]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.

相关问题 如何在我的本地未暂存更改中从Github PR视图显示差异更改? - How Do I show diff changes from the Github PR view in my local unstaged changes? 从本地机器上删除文件后,如何从 github 拉取以再次获取该文件? - After deleting a file from my local machine, how do I pull from github to obtain that file again? 如何在不删除更改的情况下用GitHub中的文件覆盖本地目录中的文件? - How do I overwrite files in my local directory with files from GitHub without erasing changes? 我如何撤消本地代表中的所有更改,并使其在github中克隆上游 - how do I undo all changes in my local rep and make it clone of upstream in github 如何使本地更改显示在github存储库中? - How do I make my local changes show up to github repository? 如何推送我从 github 克隆的存储库并对我的 github 存储库进行更改? - How do I push the repository I cloned from github and made changes to it to my github repo? 如何获得我的Github存储库以反映我机器上的合并? - How do I get my Github repository to reflect a merge on my machine? 从github提取新版本时,如何丢弃Git存储库中的本地更改? - How can I throw away local changes in my Git repository when pulling a new version from github? 如何从他人那里获得最新更改,并且不使用我在本地分支机构中的更改? - how to get the latest changes from others and do not use my changes in my local branch? 如何将文件从本地计算机添加到已克隆的本地git存储库中? - How do I add a file from my local machine to a local git repository that I have cloned?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM