Git filename too long in Windows MINGW / Git Bash


We had some source code downloaded from internet and which was developed on Windows. We wanted to make sure we add this code to git so we track the further modification we do in it. So, after extraction and trying to do “git add” command, we received an error as below, So, adding files to … Read more

How to create git superproject and add submodules ?

It often happens that while working on one project, you need to use another project from within it. Perhaps it’s a library that a third party developed or that you’re developing separately and using in multiple parent projects. A common issue arises in these scenarios: you want to be able to treat the two projects … 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

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 and then click on “Windows” or you can alternatively visit website which downloads Git exe “Git-2.26.0-64-bit.exe” . You may see different version as … Read more

How to create git repository in Github ?

GitHub allows you to create your own git repository in their server free of cost, and you can publish this publicly at their website SO basically GitHub is an free hosting platform for your git repositories which you can share with anyone to download/clone or other people can contribute in a distributed development environment. … Read more

How to resolve “sh: 0: getcwd() failed: No such file or directory”

Today I was working with git and for that I had created a “workspace” directory which contained some source files. During this activity I opened another terminal and deleted the workspace directory from second terminal, where as the first terminal, I forgot that, I was still inside that deleted “workspace” directory. When I tried to … Read more

git init

The git init command create an new empty Git repository. It can also be used in a large source code directory to convert that unversioned project to start using source code management. Without git init command in a directory, no other git command will work, hence git init is the first command to be used … Read more

Top Git Commands Every Developer Should Know

If you are working with git, you should know some commands which are mandatory and basics for getting started. In this post, we will list the commands which we are going to use as we start learning about git. The details of how to use those commands are mentioned in separate posts referenced as below. … Read more