简体   繁体   中英

After git clone all files are unversioned | GIT | IntelliJ

After cloning repository and performing Gradle refresh. I did Enable Version Control Integration . After that, all files are now un-versioned. How add to my Gitlab credentials in IntelliJ so that it can recognize the local masters code and I can fetch/ checkout remote branches. Possible solution which I saw in earlier post was

  1. To check in .idea folder -> vcs.xml where the $PROJECT_DIRECTORY is set to vcs (which it is).
  2. To check whether .gitignore contains .idea (which it does).

在此处输入图像描述

File -> Settings -> VCS -> GIT 在此处输入图像描述

Response from JetBrains Support:

Looks like IDE shows the same as git status. You have the entire folder ./ as Untracked, IDE just expands it to the list of files. They are untracked because you are looking into the git repository in ~/IdeaProjects/mig-v2-master which is a fresh one. The one you cloned is ~/IdeaProjects/mig-v2 and seems like it is not opened in the IDE.

Check the project that is opened and mappings in Settings |Version Control.

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