AWSDevOpsGrails

AWS CodeCommit

AWS has recently launched a new service which is now available generally. AWS CodeCommit is the service we would be talking briefly about in this blog. AWS CodeCommit hosts private Git repositories. You can Store code & any other type of file with AWS CodeCommit. It follows Git standards & can be used with other […]

Technology

Finding authors of all remote branches in a git repository.

Git is a widely adopted Version Control System known for its branching support. Recently I was required to find out all the remote branches with their author names. Upon browsing over the web I found that command git-for-each-ref can help me. Here is how I combined it with grep to get the desired output: [code] […]

GrailsJava/JVMTechnology

Migrating Code Base from SVN to GIT

Hi all, I have a use case where I need to migrate the code base from svn to git while preserving all the commits of different committers. For migration I have used an utility tool git-svn. In order to install git-svn we can use below command in linux box : sudo apt-get install git-svn After […]

Technology

Why are atomic commits a best practice in Git?

Atomic means all or nothing – either everything succeeds or all fails. Git is known to have atomic operations i.e. an environment issue will not cause git to commit half of the files into the repository and leave the rest. So what are we doing talking about atomic commits when all operations are already atomic in […]

Aseem Bansal
Aseem Bansal
Read

AWS

AWS CodeCommit

Amazon has come up with loads of eye-popping services that reduces our workload in re:invent 2014, one such astounding service that it has launched on Day 1 of re:invent is CodeCommit. We’ve been investing loads of our time in managing our own source control system,  which can be reduced by using CodeCommit. It’s a secured […]

Grails

Grails ‘integrate-with’ command

While reading the Grails docs I came across a useful Grails command i.e. integrate-with. In this short blog I just want to present some of the uses of this command. By using this command we can create Git’s .gitignore file: [java] grails integrate-with –git [/java] The above command will create a .gitignore file in the […]

AWS

Automating deployment of a static website hosted on Amazon S3

Most of us know how to host a static website on Amazon S3, but to deploy the website you would need to run the AWS Cli command everytime manually. In this blog I’ll show you how to automatically deploy your website while maintaining version control of your project using server side hook provided by Git. […]

ravi
ravi
Read

Technology

Modify promt to make it GIT specific.

We use git a lot, and one of the most used commands is “git branch”. Few Months back we found a script that enabled us to modify our prompt so that it shows our current branch. We have modified it further to add extra functionality, and our modified script enables prompt to show number of […]

Hitesh Bhatia
Hitesh Bhatia
Read

Technology

Git Bisect : Find that DAMN Commit!!!

While working on a project with a team, there is a chance that once in a while erroneous pieces of code (bad programming, wrong conflict resolution etc) creep in. Now wading thorugh individual commits looking for a specific line in a file that looks suspicious can be hard work and takes a lot of time. I was in […]

Manoj Mohan
Manoj Mohan
Read
Services