Home » Tag Archives: Git

Tag Archives: Git

Custom Git subcommands

Heavy users of Git often find themselves writing their own Git shortcuts or scripts which combine multiple Git commands for frequently used features. The possibilities to shortcut your way around Git include Git aliases, shell aliases, or custom scripts that reside in your $PATH. For the latter, there is an interesting feature in the Git command line that I just ...

Read More »

Git Tutorial for Beginners

1. What is Git ? Git is a popular file versioning system used globally by numerous developers for their projects. It is lightweight and swift in its performance as compared to the likes. With a number of UI based tools to assist in Git based versioning, it has become extremely convenient for the developers to use Git Versioning System. Git flaunts ...

Read More »

Git version control with Eclipse (EGit) Tutorial

1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it isn’t really easy to work with when it comes to using the command line interface for versioning. To solve this difficulty, the developers came up with creative GUI based tools called the GIT clients. GIT ...

Read More »

Access Git repositories with Java using SSH keys

For some use-cases you might access a git repository from a Java application. JGit offers a helpful integration with builder pattern APIs. The Git client can authenticate itself using SSH keys. To open a Git repository call the cloneRepository() command. File workingDir = Files.createTempDirectory("workspace").toFile(); TransportConfigCallback transportConfigCallback = new SshTransportConfigCallback(); git = Git.cloneRepository() .setDirectory(workingDir) .setTransportConfigCallback(transportConfigCallback) .setURI("ssh://example.com/repo.git") .call(); Our own implementation of ...

Read More »

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 sparsick@web.de` 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 »