Improve productivity by tracking work environment with git - preparation

Update: My repository is available here.

Below is first post from series in which I want to describe my experience gained in attempt to enhance my productivity by using git to control the contents of some files in my home directory.

The first step to improve the productivity is good organization of working environment. It happens very often that I work on multiple machines both physical and virtual. Therefore I need a good mechanism to share knowledge, experience, code, configuration and many other things. Configuration described below is only an example that actually fits my way of working. First of all simple concept of directory structure is needed. Let’s start with:

1
2
mkdir -p $HOME/workspace/blog;mkdir -p $HOME/workspace/dotfiles
cd workspace

Write some files (i.e. for your blog) with your favourite editor, initialize repository and prepare first commit

1
2
git init
git add .;git commit -m "Initial commit for environment tracking"

To avoid information about untracked vim swp files add $HOME/workspace/.gitignore with following content:

1
2
.gitignore
*.swp

Piotr Król
I’m into open-source firmware, drawing inspiration from the classic hacker ethos of collaborative innovation and transparency. At 3mdeb, we’re excited about our two main projects: Zarhus OS, an Embedded Linux distribution based on Yocto, and Dasharo, a coreboot downstream. Both are about the value of open development, embedded firmware resilience, platform security transparency, the right to repair, and digital sovereignty. Community is at the center of our activity. By being involved in the Dasharo Users Group, Dasharo Developers vPub, and events like the Qubes OS Summit, we connect with others who share our passion for open-source.