git

Posts tagged with #git
Total: 5

Oh Shit, Git!?!

Notes | 2025-07-02 (updated 2025-10-25) | 1 min read
#git

Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can’t search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.

Oh Shit, Git!?! is a collection of these situations, in plain English, and how to resolve them.

pip install from git repository

Notes | 2025-04-14 (updated 2025-10-25) | 1 min read
#git #pip #python

Install a pip package from a git repo, using a specified git reference:

Read more…

Git: Add only changed files

Notes | 2022-09-29 (updated 2025-10-25) | 1 min read
#git

Sometimes you may want to commit only the files you have changed and not any newly created files, this can easily be achieved by this command: git commit -a

Read more…

Simple git changelog

Notes | 2022-07-08 (updated 2025-10-25) | 1 min read
#git #productivity

A simple changelog system on top of git commit messages.

The main idea is to generate “release notes” from a diff in commits before a release. It can easily be run manually or as part of a merge/pull CI pipeline.

In this case it looks for commit messages starting with one of these [ADD], [REMOVE], [INFO] and just outputs those, but those patters can be adjusted to fit any existing commit schema.

Read more…

GitLab Merge Request From the CLI

Posts | 2021-05-06 (updated 2025-10-23) | 2 min read
#git #gitlab #productivity

You want to push a branch to GitLab and automatically create a Merge Request (MR) for it.

There are effectively three scenarios this can cover:

Read more…