Home » Tag Archives: Git (page 2)

Tag Archives: Git

What’s the Difference? Creating Diffs with JGit

In this post, I will dig into the details of how to diff revisions and create patches with JGit. Starting from the high-level DiffCommand all the way down to the more versatile APIs to find particular changes in a file. DiffCommand, Take I The diff command can be used to compare two revisions and report which files were changed, added ...

Read More »

Git, your way – Meet Bitbucket, code collaboration on steroids

Hello fellow Java geeks. Today we are proud to announce that we have teamed up with Atlassian to promote Bitbucket. Bitbucket is the Git solution for professional teams. A distributed version control system that makes it easy for you to collaborate with your team and ship high quality code. Fast! Bitbucket is the ONLY collaborative Git solution that massively scales! We are certain that ...

Read More »

Change default Git commit message template

We do lot of changes to projects and commit those in git repository and then commit those changes along with proper commit message. While collaborating on bigger project with lot of collaborators working at same time, commit message should be proper and reflect what those changes are. Lot of big projects has standard commit message template ready for collaborators to follow/understand ...

Read More »

Git stash driven development

I’ve found myself using a pattern quite often recently, which I’ve been calling “git stash driven development” – that is, relying heavily on the magic of git stash as part of my development workflow. Normally I follow what I think of as a fairly typical TDD workflow: Write next test, watch it fail Write code to make it pass Commit Refactor ...

Read More »

Getting Started with JGit

If you ever wondered how basic Git commands like git init, git checkout and so on are executed in JGit, read on. This tutorial gives an overview of the most commonly used git commands and their counterparts in JGit. It walks through the steps to create a repository, fetch contents from a remote, add and remove files to/from the history, ...

Read More »

Gonsole 1.2: Open Git Consoles from Everywhere

We have added a little feature to the Git Console for the Eclipse IDE that may be helpful here and there.                       In the Show In menu (Alt+Shift+W) there is now an entry for the Git Console. The entry is available if a single a file, folder or project is ...

Read More »

How to Clone Git Repositories with JGit

Whatever you plan to do with an existing repository, first a clone has to be created. Whether you plan to contribute or just want to peek at its history, a local copy of the repository is needed. While cloning a repository with JGit isn’t particularly difficult, there are a few details that might be worth noting. And because there are ...

Read More »

Git Branching Strategies

In this blog post we will talk about various branching strategies that we can adopt during SDLC. Different strategies exist for different situations with your organisation and an informative decision should be taken based on what is available and what is the situation within the team. Mainline Branch Strategy Mainline branch strategy is the simplest yet most effective strategy for small to ...

Read More »