Working with different Git configs

Short introduction Sometimes people need to specify multiple values for single .gitconfig file or they want to share just part of the configuration between two machines. There are different approaches for that. I can show you mine. Different configs for different Operating Systems On my private computer, I use Linux. I use Git for my private projects and I use my private e-mail address there. At the same time, I use Git at work on macOS with exactly the same Git configuration, but with a different e-mail address....

March 10, 2017 · 3 min · 429 words · Piotr Wittchen

Automate boring stuff

Introduction In my current company all the people who perform creative work (mostly programmers) need to prepare so-called PKUP report. PKUP stands for Podwyższone Koszty Uzyskania Przychodu in the Polish language. It’s legal regulation in Poland, which allows paying a lower income tax due to the particular type of work. For the regular employee, it means that he or she will simply get a bit higher salary per month. How the report looks in practice?...

January 1, 2017 · 3 min · 527 words · Piotr Wittchen

3 questions about your Git repository

Introduction Can you answer the following questions about your Git repository? Does development branch has all changes from master branch? Is your gitlog a crap? How old are your branches? If not, but you want to know answers, you’re lucky, because I prepared 3 simple scripts for you, which can help to find it out. Does development branch has all changes from master branch? git-branch-comparator is a python script, which checks if development branch has all changes from master branch in Git repository....

December 28, 2015 · 3 min · 629 words · Piotr Wittchen

Checking consistency of git branches

Recently I’ve created a simple Python script, which checks whether ‘development’ branch has all changes from ‘master’ branch in a Git repository. It’s important when we work in a Git Flow. Branch inconsistency may occur when change with hot-fix will be committed to ‘master’ branch and we forget to merge ‘master’ branch back to ‘development’ branch to have our hot-fix in a ‘development’ version of the project as well. We should keep branch consistency to avoid merge conflicts and problems with release of the project in the future....

May 14, 2015 · 1 min · 193 words · Piotr Wittchen

Basics of Git

Introduction Git is very popular Version Control System used in many software projects today. In my opinion, it’s the best VCS available today. In order to start your adventure with this tool, you should know its basic commands and features. There are graphical tools, which allows to use Git without terminal, but I recommend you to use terminal. With CLI you can work faster, you can understand Git better and you have more control over your repository....

November 27, 2014 · 4 min · 646 words · Piotr Wittchen