All posts with Tag git

Preview image blogpost

Getting git version information in your C# code

Did you ever need git-specific information like the latest tag or the current commit inside your C# code? Or even the semantic version number of your current build=

Well, there is an easy solution involving source generators.

Read the whole article

Git-Flow, GitHub-Flow, Gitlab-Flow and Trunk Based Development explained

There are plenty of models how to do your branching in git. All of them are viable approaches with their respective pros and cons. So let's have a look at those branching strategies and where they are great and where they are falling off.

So let's deep dive into: Git-Flow, GitHub-Flow, Gitlab-Flow, Trunk Based Development.

Read the whole article

Preview image blogpost
  • 11/07/2022
  • 20 min

How does git work?

In this blog post I will show you how git works. Or better we will see how git works on the example of some of the commands.

Are you confused about origin, remote, rebase or merge? You see stuff like origin/main and origin main and just question marks appear? Say no more!

Read the whole article

Preview image blogpost

git hook - prefix your commit message with your JIRA ticket

In this short blog post I'll show you how you can automatically prefix your commit messages with the JIRA ticket derived from your branch name.

Read the whole article

Preview image blogpost
  • 10/09/2021
  • 19 min

git - useful aliases

In this article I'll show you some of my most used git aliases which make my everyday work easier and more productive.

Read the whole article

Preview image blogpost

How to hunt down bugs with git bisect

This article will show how you can identify the commit a bug was introduced.

Sometimes it is hard to track down a bug. Your only chance is to exploratory test your code until you find the code in question. I will show you a way how to do this with git. More specific how to use git bisect

Read the whole article

Preview image blogpost

How to rebase onto a different branch with git

We're all been there. You worked on a feature or bug on your branch and after some commits you noticed "Oops, I should have branched from xyz instead of abc". I'll show you an easy way of simply moving your stuff from branch abc to xyz.

Read the whole article

An error has occurred. This application may no longer respond until reloaded. Reload x