Fixed : git error: inflate: data stream error (invalid distance code)

Recently somehow our git got corrupted and we couldn’t push our code to server and got an error as, “error: inflate: data stream error (invalid distance code)” and “error: corrupt loose object” When we tried below commands like “git gc –prune” or “git gc –aggressive –prune=now” or “git fsck” the error was shown as same … Read more

Solved git error – fatal: unknown index entry format 0x16700000

Recently we did one find and replace in our existing git using command mentioned at “Grep and replace string from source code using command in Linux” but this somehow broke our git and we got a following error when tried to do git status, Solution : This error can be resolved as, And now if … Read more

How to clone a large git repository

Recently, I needed to clone the ndk while downloading andorid source, ndk size to clone was more than 4GB and my internet speed 512KB, which could take around 20 hours to clone. And, as you know if for any reason, Internet disconnects before git clone is 100%, the entire git needed to be clone from … Read more

How to create repository mirror onto github

Recently we wanted to create a yocto cgit repository mirror onto our github which should track our changes as well as yocto git,  follow below steps to create a mirror on github, This assumes, we are cloning into poky-mirror directory on our local machine ~/Desktop/devlab/yocto and we have create a new repository named “poky” into our … Read more

Important gerrit commands

This post list the details of some of the important gerrit commands which we have tried, (This post will be updated as and when we use the commands) Note: The gerrit commands are executed on Ubuntu gerrit review server https://review.opendev.org/ . You may need to register to execute same commands on this server. Check gerrit … Read more

How to install git / git-bash on Windows

When you need to work with git on windows, the very first thing you need to do is install git on Windows. This post describes the same, Visit git website https://git-scm.com/downloads and then click on “Windows” or you can alternatively visit website https://git-scm.com/download/win which downloads Git exe “Git-2.26.0-64-bit.exe” . You may see different version as … Read more