Git

Pre-commit checklist

Posted on

This is an attempt to create a checklist to use before making a commit. Before saving commit to Git the program code must require a list of rules: Code can be compiled. Perform algorithm with needed results. Code is refactored with meld tool. Constants starts with a capital letter, ends with the value type (i.e. MSec) and use […]

Git

How to install Git on Ubuntu

Posted on

An indispensable tool in modern software development is some kind of version control system. Version control systems allow you to keep track of your software at the source level. You can track changes, revert to previous stages, and branch to create alternate versions of files and directories.

Git

How to fix a Git detached head

Posted on

HEAD is the symbolic name for the currently checked out commit. When HEAD is not detached (the “normal”1 situation: you have a branch checked out), HEAD actually points to a branch’s “ref” and the branch points to the commit. HEAD is thus “attached” to a branch. When you make a new commit, the branch that […]