git Gitkraken 在打开 repo 时卡住了
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43109615/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Gitkraken stuck at opening repo
提问by Soli
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?
每次我打开 gitkrarken 时,它都会卡在打开 repo 图标上。我无法打开/克隆/初始化存储库。我听说其他一些人也有同样的问题,但似乎没有人知道为什么会发生这种情况以及解决方案是什么。有人能帮忙吗?
UPDATE 1Reinstalled it. Still having the same problem
更新 1重新安装它。还是有同样的问题
采纳答案by yoeunes
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.
关闭 gitkraken 并转到您的主目录。删除隐藏文件夹“.gitkraken”。文件夹“.gitkraken”将在重新启动时自动创建。这个解决方案对我有用。
For mac and linux users: rm -r ~/.gitkraken
对于 mac 和 linux 用户: rm -r ~/.gitkraken
回答by GeekyMonkey
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.
不是正确的解决方案,但我遇到了同样的问题。我已经能够通过在打开 GitKraken 之前关闭 Visual Studio 来解决它。只有在打开并且 VS 已经打开时才会卡住。
回答by BizzyDizzy
Currently for a workaround I do View->Reload (Ctrl + R).
目前的解决方法是查看->重新加载(Ctrl + R)。
回答by ChrisM
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.
我刚刚在 Windows 上使用 GitKraken V2.7.0 x64 遇到了类似(可能相同)的问题。GitKraken 崩溃并在此之后尝试打开 repo。这从未完成。我认为这是由当时开放的 Visual Studio 引起的,VS 和 GitKraken 并不完全是朋友。我杀死了 GitKraken,关闭了 VS。之后,当在 GitKraken 中打开 repo 时,它说“没有 repo,你想初始化它吗?”。这也失败了。不确定问题的根本原因是什么。
The solution however was to checkout another branch from the CLI.After that GitKraken magically worked again. Maybe this helps someone.
然而,解决方案是从 CLI 检出另一个分支。在那之后,GitKraken 又神奇地工作了。也许这对某人有帮助。
回答by Ivica ?krobo
Deleting the index.lock in my Project/.git folder worked for me. Btw it's a hidden folder.
删除我的 Project/.git 文件夹中的 index.lock 对我有用。顺便说一句,这是一个隐藏文件夹。
回答by Borhan Kazimipour
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.
我[conflict]
从.git
文件夹及其子文件夹中手动删除了名称中的所有文件。然后,我执行了git gc
压缩数据库,最后git fsck
确保一切正常。现在,我可以在GitKraken 中打开存储库。
Notes:
笔记:
- Thismight be helpful to remove all files marked as
'[conflict]'
. - 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.
- 这可能有助于删除所有标记为
'[conflict]'
. - 该组合对我有用,但您可能不需要执行所有这些步骤。例如,您可能没有冲突文件,或者您只想以不同的方式解决它们而不是删除它们。
回答by Douglas Anderson
For us, it was the fact that the one of our guys had the repo cloned to a OneDrive folder.
对我们来说,事实是我们的一个人将 repo 克隆到 OneDrive 文件夹。
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.
当存储库位于 OneDrive 文件夹中时,GitKraken 会打开并不断刷新,因此您无法单击或执行任何操作。您可以将其描述为 GitKracken 看起来像是在屏幕上“闪烁”。
As soon as we moved the repo to a folder not monitored by OneDrive it worked just fine.
一旦我们将 repo 移动到不受 OneDrive 监控的文件夹,它就可以正常工作。
回答by Michael Thornberry
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.
就我而言,问题在于我的 SSDT(Sql Server Data Tools)项目生成的 .jfm(二进制)文件。当该文件更改时,GK 开始出现此问题。如果我手动提交(或还原)该文件,问题就会消失。
回答by SimpleTrousers
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.
到目前为止,我确信这个答案不会帮助问这个问题的人,但也许这会在未来帮助人们。我只是简单地删除并重新克隆了 GitKraken 试图打开的存储库。对我来说就像一种魅力。
回答by rombow
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)
对于我挂 GitKraken,如果我删除本地或原始位置的分支。在此之后开始挂在主窗口中或更改右侧的列表器。如果您运行“GIT GC”(https://git-scm.com/docs/git-gc),帮助不大