Gitkraken stuck at opening repo

GitGitkraken

Git Problem Overview


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

Git Solutions


Solution 1 - Git

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

Solution 2 - Git

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.

Solution 3 - Git

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.

Solution 4 - Git

*GitKraken 7.7.1 has resolved this issue, see below if issue persists.

Had this issue popup with GitKraken 7.7.0 today. Never had anything in the application error logs or the repo logs that seemed to point to a specific cause or source, but I've resolved the issue today and before (without losing any configuration settings) by:

Going to ->

AppData\Roaming\.gitkraken\profiles\[your profile]\profile

or

~/.gitkraken/profiles/[your profile]/profile

BACKUP this profile file or have it open in text editor able to undo changes.

Open 'profile' in text editor and remove the problematic repo entries under tabInfo -> tabs ->

{
  "tabInfo": {
    "tabs": [
      { <--- DELETE
        "id": "", <--- DELETE
        "type": "", <--- DELETE
        "repoName": "", <--- DELETE
        "repoPath": "" <--- DELETE
      }, <--- DELETE
    ],
    "selectedTabId": ""
  }
}

Whenever I do this and reopen the problematic repo in GitKraken, it resolves the endless loading issue.

OR

As per Borhan Kazimipour's answer, and based on feedback from GitKraken Support, a simple git gc on the repo directory can resolve the issue.

Solution 5 - Git

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

Solution 6 - Git

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.

Solution 7 - Git

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

Solution 8 - Git

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:

  4. A symlink pointing to a folder outside of my repo was renamed

  5. A copy of my repo inside the same repo

  6. A new folder with images

  7. Renamed #1 back to its original name, and removed #2 & #3 manually

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

Solution 9 - Git

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

[1]: https://stackoverflow.com/questions/5709687/what-are-the-loose-objects-that-the-git-gui-refers-to "link"

Solution 10 - Git

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.

Solution 11 - Git

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.

Solution 12 - Git

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)

Solution 13 - Git

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.

Solution 14 - Git

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

Solution 15 - Git

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

Solution 16 - Git

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.

Solution 17 - Git

I was helping a friend with the same issue. He was using gitkraken with IntelliJ on a windows 10 VM. The solution that worked for us was: Deleting the hidden .git folder, in the folder where you have whatever program your working on (the reason why is because gitkraken is trying to open the repo which is why it keeps popping up with the error) Afterward gitkraken should not have the error anymore because you deleted the repo. Now just clone the repo from GitHub and just place the newly cloned repo in the same place the old repo was. Side note: if you try to open the repo from the recent tab in the open repo you will more likely to get an error saying something about not finding it. (its because that's the old repo you deleted) you will have to browse and open the newly cloned repo manually in order to make it work.

Solution 18 - Git

On Windows I solved with the following:

  1. rename the directory of the repo that is not opening
  2. open git kraken and close all tabs
  3. rename directory back to original name
  4. open the repo

Hope that helps other windows users :)

Solution 19 - Git

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 [email protected]: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.

Solution 20 - Git

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

Solution 21 - Git

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.

Solution 22 - Git

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.

Solution 23 - Git

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!

Solution 24 - Git

TLDR;

brew install git-sizer
brew install bfg
bfg --strip-blobs-bigger-than 1M
git reflog expire --expire=now --all && git gc --prune=now --aggressive

I suddenly experienced this yesterday. I tried everything outlined here, and elsewhere. Nothing had any positive affect at all. What it turned out being for me was a repo that was large and complex...and, gc clean wasn't fixing it sufficiently. What I ended up doing was installing git-sizer (via homebrew), this alerted me to a couple issues. I then installed bfg (via homebrew) and then ran:

bfg --strip-blobs-bigger-than 1M

This executes a bunch of git commands and outlines large files in your repo (HEAD is excluded). This alerted me to, and removed, 6-8 large files that were committed long ago and have been lingering and bloating my repo ever since.

Following that I ran:

git reflog expire --expire=now --all && git gc --prune=now --aggressive

That significantly reduced my repo size, removed a bunch of bloat, cleaned things up...and Gitkraken immediately opened my repo. Back in action.

Also, Gitkraken offers some support idea (I think you have to be logged in to your account to view). Their docs illustrate how to view error logs, performance issues, and outlines some common issues and settings to check.

Solution 25 - Git

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.

Solution 26 - Git

I know this is an older thread but I had this issue today. It was caused by having a large number of files added to my repo without adding them to the .gitignore. I threw the COCO dataset into a deep learning repo so git was trying to list all 100k or so images, causing the crash. I just added the COCO directory to the .gitignore and everything went back to working like normal.

Solution 27 - Git

If it's only one specific repo, make sure you don't have huge files in your repo. Adding them (or the respective folder) to the .gitignore should resolve the issue.

Solution 28 - Git

I fixed mine by:

  • Close gitkraken and quit if u r ios
  • Make sure you add large folders to .gitignore i.e. node_modules and Pod folders. i.e. open .gitignore file in vs code and add: node_modules/
    /ios/Pods/
  • in vs code click on source control on left side menu and commit your changes by adding message and click on check, then close vs code
  • open gitkraken and it should work fine now

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSoliView Question on Stackoverflow
Solution 1 - GityoeunesView Answer on Stackoverflow
Solution 2 - GitChrisMView Answer on Stackoverflow
Solution 3 - GitGeekyMonkeyView Answer on Stackoverflow
Solution 4 - GitBagoDevView Answer on Stackoverflow
Solution 5 - GitBizzyDizzyView Answer on Stackoverflow
Solution 6 - GitBorhan KazimipourView Answer on Stackoverflow
Solution 7 - GitIvica ŠkroboView Answer on Stackoverflow
Solution 8 - GitJames DizonView Answer on Stackoverflow
Solution 9 - GitPau GuillamonView Answer on Stackoverflow
Solution 10 - GitDouglas AndersonView Answer on Stackoverflow
Solution 11 - GitMichael ThornberryView Answer on Stackoverflow
Solution 12 - GitrombowView Answer on Stackoverflow
Solution 13 - GitSimpleTrousersView Answer on Stackoverflow
Solution 14 - Gitmatt antosView Answer on Stackoverflow
Solution 15 - GitB. FrischView Answer on Stackoverflow
Solution 16 - GitKarl WilburView Answer on Stackoverflow
Solution 17 - GitANDRE SMITHView Answer on Stackoverflow
Solution 18 - Gituser2881850View Answer on Stackoverflow
Solution 19 - GitskapralView Answer on Stackoverflow
Solution 20 - GitGer McView Answer on Stackoverflow
Solution 21 - Gitjethro_the_catView Answer on Stackoverflow
Solution 22 - GitNate LaiView Answer on Stackoverflow
Solution 23 - GitBuvinJView Answer on Stackoverflow
Solution 24 - GithellionView Answer on Stackoverflow
Solution 25 - GitZoltán ErdősView Answer on Stackoverflow
Solution 26 - GitNic PayneView Answer on Stackoverflow
Solution 27 - GitmattseiblView Answer on Stackoverflow
Solution 28 - GitAhmed ShahinView Answer on Stackoverflow