Gitkraken stuck at opening repo

我只是一个虾纸丫 提交于 2019-11-29 10:48:05

问题


Every time I open gitkrarken it gets stuck at opening repo icon. I can't open/clone/init repo. I heard some others have the same problem but no one seems to know why this is happening and what the solution is. Can anyone help with this?

UPDATE 1 Reinstalled it. Still having the same problem


回答1:


Close gitkraken and go to your home directory. Delete the hidden folder ".gitkraken". The folder ".gitkraken" will be created automatically upon restart. This solution works for me.

For mac and linux users: rm -r ~/.gitkraken




回答2:


Not a proper solution, but I'm having the same problem. I've been able to work around it by closing down Visual Studio before opening GitKraken. It only gets stuck when opening and VS is already open.




回答3:


Currently for a workaround I do View->Reload (Ctrl + R).




回答4:


I just had a similar (maybe the same) problem with GitKraken V2.7.0 x64 on Windows. GitKraken crashed and tried to open the repo after that. This never finished. I assume this is caused by visual studio which was open at the time and VS and GitKraken are not exactly friends. I killed GitKraken, closed VS. After that, when opening the repo in GitKraken, it said something like "there is no repo, do you want to initialize it?". This also failed. Not sure what the root cause for the problem is.

The solution however was to checkout another branch from the CLI. After that GitKraken magically worked again. Maybe this helps someone.




回答5:


Deleting the index.lock in my Project/.git folder worked for me. Btw it's a hidden folder.




回答6:


I manually removed all files had [conflict] in their names from .git folder and its subfolders. Then, I performed a git gc to compress the database and finally git fsck to make sure everything is just fine. Now, I can open the repo in GitKraken.

Notes:

  1. This might be helpful to remove all files marked as '[conflict]'.
  2. The combination worked for me but you may not need to perform all these steps. For example, you may not have conflict files, or you just want to resolve them differently rather than removing them.



回答7:


For us, it was the fact that the one of our guys had the repo cloned to a OneDrive folder.

When the repo was in a OneDrive folder GitKraken would open and then constantly refresh so you couldn't click or do anything. You could describe it as GitKracken looked like it was 'flashing' on screen.

As soon as we moved the repo to a folder not monitored by OneDrive it worked just fine.




回答8:


In my case, the issue was with a .jfm (binary) file that my SSDT (Sql Server Data Tools) project generates. When that file changes, GK starts having this issue. If I manually commit (or revert) that file, the problem goes away.




回答9:


By now, I'm sure this answer won't help who asked the question, but maybe this will help people in the future. I just simply deleted and re-cloned the repo that GitKraken was trying to open. Worked like a charm for me.




回答10:


just had a similar problem with a spring-boot(mvc) project w/ embedded H2 db, on GitKraken(2.7.1)

Turns out when the app is running, it will cause this problem on selective hardware that use that repo, So make sure your repo isn't being actively used while sync-ing




回答11:


For me hanging GitKraken, if i delete branches in local or origin place. After this start hanging in main window or changes lister in right. Little help is if you run "GIT GC" (https://git-scm.com/docs/git-gc)




回答12:


In our case there was a Latex document in the repository. Gitkraken could not open the repository.

Based on what @GeekyMonkey suggested, my student tried to start GitKraken after closing all files and shutting down his Tex editor.

It worked after that




回答13:


Fixed mine by

  1. Quit GitKraken
  2. Open terminal/command prompt and do a git status on the repo
  3. Found that there were a few files/folders uncommited/unstaged:

    1. A symlink pointing to a folder outside of my repo was renamed
    2. A copy of my repo inside the same repo
    3. A new folder with images
  4. Renamed #1 back to its original name, and removed #2 & #3 manually

  5. Opened gitkraken and it was able to load my repo without any problems



回答14:


To me the problem was that the git database was not compacted. git gui showed that notification (enter link description here). By compacting it (through git gui or git gc, I assume) it fixed the problem with GitKraken.




回答15:


I just had the same problem. I found that my .git/logs/HEAD had a bad entry (don't know how that happened nor why gitg and the git CLI both ignored the issue). Totally a problem with my repo, not GitKraken.

More detail...

To figure this out, I cloned the repo into a separate directory and meld'd them to see what was different. I opened GitKraken to this new clone; all's well. I then started copying things over from the old repo directory to the new one (objects, refs, logs, etc.). Once I copied that log file over, GitKraken went back to the "Opening repo" message.

Digging deeper into that log file I found a bad line. I was able to determine from the context how to re-create that bad line. Once I fixed it, GitKraken was happy.




回答16:


I had the same issue and couldnt fix it until I deleted the repo I knew was causing the issue and then created it again.

Working fine now




回答17:


In my case, such GitKraken glitch is reproducing stably, when I make an attempt to attach some Dokku (https://github.com/dokku/dokku) remote repository with git remote add. Removing it fixes the issue. I think Heroku repos may cause the same issue, though never checked it.

UPD: It is not Dokku/Heroku which causing troubles in my case. Any time when I use SSH-like URL for any remote repository (like git@github.com:reponame...), I get cyclic reloading of GitKraken. By coincidence, Dokku and Heroku use SSH-like URLs by default. Once SSH-like URLs are removed or changed to HTTPS, GitKraken is ok.




回答18:


I had the same problem. Reading all of the above it appeared that my workflow was incorrect. I opened Excel and Notepad++ and suchlike to make changes to the repo and then opened GitKarken and was faced with the spinning circle. Of course all of these other programs took locks on the files. As soon as I closed all of the other programs and the restarted GitKraken it worked!! So more correct workflow would be to open GitKraken first and let it connect everything together, then do some work. Commit was no problem after that.




回答19:


In my case, I found out the problem was caused by the index file in ".git" folder.

The index is a binary file (generally kept in .git/index) containing a sorted list of path names, each with permissions and the SHA1 of a blob object; git ls-files can show you the contents of the index.

(Enter the link to know more)

Accidentally, I had deleted some files in my repository that's why it caused the index file changed. Therefore, my Gitkraken stuck in the infinity loop.

I just copied the index file in the previous updated repository and paste to the current repository. It works for me.




回答20:


I had this problem using one repo, but not on others. The problem child was fairly large and complicated. I tried many of the solutions here to no avail. Then, I tried a pretty obvious patch - and upgraded the software. I went from GitKraken v3.x to v4.x and that did it!




回答21:


Check your project for large generated directories, like node_modules, which git isn't configured to ignore. If you don't tell git to ignore those (often very large) directories, Kraken will try to index them and will become overwhelmed by the task.

I had this problem too. Once I added the "node_modules" dir to the .gitignore file,

echo node_modules >> .gitignore

and restarted the Kraken client, it worked like a charm.



来源:https://stackoverflow.com/questions/43109615/gitkraken-stuck-at-opening-repo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!