简体   繁体   English

无法使用Intellij Idea从github提取更改

[英]Unable to pull change from github with Intellij Idea

I would like to pull updates that a friends just pushed a week ago on github with intellij Idea. 我想拉一个朋友一周前使用intellij Idea在github上推送的更新。 I open the project on my computer, checkout on the correct branch , went to VCS ->git -> pull , choose the correct branch , but nothing appended. 我打开计算机上的项目,在正确的分支上签出,转到VCS-> git-> pull ,选择正确的分支,但未附加任何内容。

Thus, I decided to go on github, to verify if those changes where applied on the repository, and yes, the repository is up to date in github but i'm not able to pull changes. 因此,我决定继续使用github,以验证这些更改是否应用于存储库,是的,该存储库在github中是最新的,但我无法提取更改。

I also tried to clone the project and recreate a new project on Intellij Idea but it make no changes... 我也尝试克隆该项目并在Intellij Idea上重新创建一个新项目,但是它没有任何变化。

Could somebody explain me how can i fix my problem, and get all changes made to the project ? 有人可以解释一下我该如何解决我的问题,并对项目进行所有更改?

does it mean that I am trying to pull something from a random repository ? 这是否意味着我正在尝试从随机存储库中提取某些内容?

In order to avoid that, the easiest workaround is to: 为了避免这种情况,最简单的解决方法是:

  • git clone the GitHub repo in another folder git clone将GitHub存储git clone到另一个文件夹中
  • open that folder with IntelliJ IDEA: it will recognize the project (and the remote Git repo) 使用IntelliJ IDEA打开该文件夹:它将识别项目(和远程Git存储库)

The OP JerDum adds in the comments : OP JerDum添加了注释

Some additionnal informations where stocked in the .gitconfig , and these informations interfered with Intellij Idea, and with Git, in the terminal. 一些附加信息存储在.gitconfig ,并且这些信息干扰了终端中的Intellij Idea和Git。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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