Home » Tag Archives: Git

Tag Archives: Git

How to create new Git Repository and host it in Bitbucket

What is Git ? While working in a team which involves multiple developers,it is very much necessary to use a Version Control System. Version Control System is basically a Software using which – Multiple developers can put their code in(Check In). – Take (Check Out) the code of fellow Software developers. – See the version history of the files(Who committed ...

Read More »

Pimp my Git – Manage Different Git Identities

I usually work on different Git projects that need different Git identities. My work flow for new repositories was Clone new repository. Go to cloned repository. If it is necessary to change the Git identity, call a shell script that runs `git config user.name “Sandra Parsick”; git config user.email [email protected]` I was never happy with this solution, but it works. ...

Read More »

Pimp My Git – Git Mergetool

I like to work with git on the command line. But in some cases I prefer UI support. For example, solving merge conflicts is such a case. Git has a command mergetool, which can open a graphical tool to solve merge conflicts. But before you can use this command, you had to configure it. In this blog post I’d like ...

Read More »

Authenticating with JGit

JGit is a lightweight, pure Java library implementing the Git version control system. You can do a lot of operations using Java language such as create or clone Git repos, create branches, make commits, rebase or tag, you can see this repo to learn how to use JGit and how to code the different commands. But one thing that does not ...

Read More »

Git Tutorial – The Ultimate Guide (PDF Download)

Git is, without any doubt, the most popular version control system. Ironically, there are other version control systems easier to learn and to use, but, despite that, Git is the favorite option for developers, which is quite clarifying about the powerfulness of Git. This guide will cover all the topics needed to know in order to use Git properly, from ...

Read More »

Why I Prefer Merge Over Rebase

There are many ways to work with git. The workflows vary depending on the size of the team, organization, and on the way of working – is it distributed, is it sprint-based, is it a company, or an open-source project, where a maintainer approves pull requests. You can use vanilla-git, you can use GitHub, BitBucket, GitLab, Stash. And then on ...

Read More »

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 »