How to Squash Commits in Git

Very often we will be committing smaller pieces of work in our local machine as we go. However before we push them to a centralized repository, we may have to combine these small commits to single large commit, which makes sense for rest of the team. I will explain how this can be achieved by using interactive rebasing. To start with, let us assume the initial commits history look like below. It have 4 minor commits done to the same file. ...

June 15, 2017

Git - How to solve filename too long error

Git for windows is normally shipped with long path support disabled due to mysys not supporting file path/name greater than 260 character. While cloning repository with large nested directory structute may cause error “file name too long”. This can be fixed by below command. It can be executed using powershell or cmd directly in project ( or anywhere if git variable is available) git config --system core.longpaths true

September 23, 2016