Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitkraken doesn't show branches and commits

Tags:

git

gitkraken

When I try to open a repository in a xampp server with Gitkraken I can't view branches or commits, just the message "Displaying 2000 commits. Adjust this setting in Preferences". I tried to reinstall Gitkraken, reopen the repository and reboot xampp/my computer but it didn't work. My computer is a MacBook Pro (Retina, 13-inch, Early 2015) with macOS Mojave 10.14.6. enter image description here

like image 289
Lander Landaluce Iturriria Avatar asked Nov 24 '19 20:11

Lander Landaluce Iturriria


1 Answers

Ran into this because I had to check out my repo with limited depth. Cloning the repo fully ran into a closed connection, so I checked out a shallow copy:

git clone http://github.com/large-repository --depth 1

But this resulted in GitKraken omitting the history like what you ran into. GitKraken didn't handle the depth nicely; in order to fix it, I had to run this after the initial clone:

git fetch --unshallow

Update: I'm not sure if this was the same situation as what you ran into, but the GitKraken dev team responded to me saying the app doesn't support shallow copies yet: Why Gitkraken does not display any logs in big repos?

like image 129
Yasper Avatar answered Sep 20 '22 17:09

Yasper