Home » Tag Archives: Git (page 2)

Tag Archives: Git

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 »

GitHub vs GitLabs vs BitBucket Server (Formerly Stash)

This article will try to compare GitHub, GitLab and BitBucket Server (previously called Stash) installed on your own servers. Similar comparison of cloud offerings is outside the scope of this article. I won’t try to go feature by feature in some kind of a table so that you can count who has more features. I find that approach often misleading ...

Read More »

A paranoid’s guide to backing up a working folder

Oops time Leanpub supports multiple storage engines and a private GitHub repository is probably the safest way to the backing up your working folder. I chose Dropbox as I didn’t envision anything wrong with the automatic synchronization mechanism. While working on my book, I accidentally managed to wipe-out half of my diagrams and all changes were instantly synchronized by Dropbox. ...

Read More »