Tag: git

Downgrade package in brew

There are numerous guides for downgrading a Brew package but somehow, none that I tried I found to be particularly helpful, let alone working and straightforward. Thus I mixed and matched them together to build Yet another brew downgrade package guide™, that at least works for my…

Post checkout composer install hook

Sometimes when working on a PHP project where there are a lot of branches potentially sitting on incompatible packages, it can be a pain to always remember to manually run composer i or whatever docker alternative or alias one might be using. After forgetting, there are error mes…

Restore data from Gitea restic backup

Just a very quick update about how I was able to restore a git repository stored inside a Gitea and backed up via restic. Warning: this guide most probably does not work correctly with LFS files, but they might either not be that critical to restore or the repository might not e…

Merge repos using git-filter-repo

I have already written how useful a tool git filter-repo is for cleaning repositories. I made some extensive use of the newfound knowledge since to undo some previous bad decisions in my private repositories. Here's a list of commands for merging project-a into project-b for a re…

Git sign previous commits keeping dates

Sometimes you might need to re-sign your previous commits using GnuPG. This process rewrites the git history in a sense of changing commit hashes. What is more, it also changes the date when commit was made. If not done properly, the repository looks like if there was no history …