Gitkraken doesn't show branches and commits

后端 未结 7 3104
忘了有多久
忘了有多久 2021-02-20 09:46

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 Preference

7条回答
  •  自闭症患者
    2021-02-20 10:21

    I had the same problem, unfortunately Yaspers answer did not work for me since I did not make a shallow copy.

    Turns out my GIT repository was corrupted for whatever reason. After opening the command line and executing git fsck, I got this error message:

    error: packfile [some hash].pack claims to have 811 objects while index indicates 874 objects
    

    I tried to reset the changes: git reset --hard. It sort of worked (be aware that this deletes all of your uncommitted changes!). Git Kraken was able to display new changes but still was not able to display the whole tree.

    In the end, the only thing that worked for me:

    • cloning the repository into a new location
    • copying all files, that were not tracked by GIT (files that I only needed on my local PC, for example, some .env files) to the new location

    It is not the solution I hoped for but at least I did not lose the whole repository.

提交回复
热议问题