Paolo Redaelli personal blog

Author: Paolo Redaelli

Never* use git pull – YouTube

    Just a quick summary mostly for myself:

    How to use git pull --rebase to keep your team’s commit history clean.

    Command for creating the ‘git pr‘ alias (so you can copy-paste): git config --global alias.pr "pull --rebase"

    1. Always try git pull --rebase first. It if works, you’re done!
    2. If you get a merge conflix, you can undo everything with git rebase --abort
    3. Then just pull “normally” using git pull, or do an interactive rebase (advanced)

    Translate time!

    I’ve been using  WP BrowserUpdate, a plugin that informs website visitors to update their out-dated browser in an unobtrusive way, for a while now. Italian translations are uncomplete so… translate time! But first let’s read https://make.wordpress.org/polyglots/handbook/translating/glotpress-translate-wordpress-org/

    Link

    Enums were added to PHP in 2021. In this post, I share my experience working with enums and give a brief overview.

    Source: Enum Best Practices in PHP 8.3

    I’m just too clumsy

    I just wished to install Lineage OS 18.1 (Android 11) on a second hand MediaPad T5 (AGS2-XXX). I dutifully downloaded the ROM image but when I discovered that installing it actually require to open the tablet and hack the hardware I got scared: I’m too clumsy, I will just end up ruining the tablet. It…