Technology

Git – Grep

Still in my early days of using Git. Recently just to make sure that I have merged two branches  and have pushed changes to QA server successfully,I often used command "find | xargs grep" .But to deal with this kind of situations Git provides "grep" command. Just as name suggests this commands searches for regex pattern passed to it. ...

by Hitesh Bhatia
Tag: git
22-Jan-2011

Technology

Fetching an old deleted file of a project using Git

Recently in one of my projects, I had to bring the content of old-forgotten-deleted file back to the application code base using Git. The problem took a 'fancy' turn as the path to the file was no more a valid path in Git as there had been a major refactorings in our project esp. renaming of the packages as well as the folder structure...

by Abhishek Tejpaul
Tag: git
15-Nov-2010

Technology

Creating a New Git Branch on the Local Machine and Pushing it to a Remote

Our project went into production a few weeks back and was on Grails 1.3.1. Since the code was stable, we decided that it was time to upgrade to grails 1.3.4. However, we didn't want to push it straight to the QA Server or Production server because that would've meant that the maintenance of the existing production code would become a...

by Vivek Krishna
Tag: git
09-Sep-2010

Technology

Git Stash : A very useful command

We have been using GitHub for version control in one of our projects and I am absolutely loving it! There are quite many advantages over a concurrent version control system like subversion. One of the commands I found useful was the stash command. It is of use when we are working on a piece of functionality, which is not in a state to...

by Vivek Krishna
Tag: git
31-Aug-2010