Skip to content

Instantly share code, notes, and snippets.

View europ's full-sized avatar

Adrián Tóth europ

  • 14:45 (UTC +01:00)
View GitHub Profile
@europ
europ / atomic-git-commits.md
Created December 13, 2022 14:57 — forked from tarrsalah/atomic-git-commits.md
Every commit should be a perfect, atomic unit of change

Original post published on gemini://drewdevault.com/2021/01/02/2021-01-02-Every-commit-should-be-perfect.gmi


Every commit should be a perfect, atomic unit of change

Good commit discipline with git pays dividends in many respects, most of which are difficult to achieve with other version control systems. Each commit to your repository’s main branch should be exactly the correct size, be it large or small, such that it introduces one atomic unit of change. It should fix one bug, introduce one feature, refactor one system, and do so completely, rather than spreading the change out across several commits.

@europ
europ / CentOS-Docker
Created February 24, 2021 14:08 — forked from silveraid/CentOS-Docker
Creating minimal CentOS docker image from scratch
# Create a folder for our new root structure
$ export centos_root='/centos_image/rootfs'
$ mkdir -p $centos_root
# initialize rpm database
$ rpm --root $centos_root --initdb
# download and install the centos-release package, it contains our repository sources
$ yum reinstall --downloadonly --downloaddir . centos-release
$ rpm --root $centos_root -ivh centos-release*.rpm
$ rpm --root $centos_root --import $centos_root/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# install yum without docs and install only the english language files during the process