My learning diary

Deleting all git branches except master

I like to use different branches to compartmentalise my work items. I don’t remember my feature branches, so I list them with git branch. When cleaning them up in my local machine, I often google “delete all branches except master”. Today, I want to stop copying commands off the internet. It’s not like I don’t know these commands - I tuned off and did not bother to break it down.

Continue reading "Deleting all git branches except master"

ng new with pnpm

Many years ago, my friend recommended yarn for package management. Things have changed since then. I was searching for a performance comparison report until I stumbled upon pnpm. Then, when I ran ng new [name], npm was used. I wanted pnpm. I should have done: ng new [name] --package-manager pnpm References: Stack Overflow thread Angular CLI docs

Continue reading "ng new with pnpm"