Chi Yau ☕️

Chi YauChi Yau

App Dev

ShareChiWai

Professional Summary

I’m Chi, a passionate tech enthusiast exploring the latest innovations in GenAI, LLMs, web development, performance tuning, and cybersecurity. As a tech guy at a startup, I aim to share my experiences, insights, and lessons learned in the fast-paced world of technology. Join me on this journey as we dive into the exciting challenges and triumphs of building and scaling tech solutions!

Interests

Performance Tuning Building Tech Innovation
Blog

Git Worktree Cleanup Guide

學習如何檢查和清理已合併的 git worktree,包括批量刪除腳本和最佳實踐,避免 worktree 堆積影響開發效率。

fatal: branch is already used by worktree at

當使用 GitHub Copilot App 配合 Hermes Agent 建立 JIRA Task 並完成 Pull Request 後,嘗試在 working folder checkout 該 branch 時遇到 git worktree 衝突錯誤的解決方案。

fatal: Cannot rebase onto multiple branches.

有次做 git rebase 點知彈個 error 出嚟:fatal: Cannot rebase onto multiple branches. 研究咗一陣先發現係幾簡單嘅問題,記低方便下次再遇到可以快速解決。

How to Remove Passphrase on SSH Key

如何在 Raspberry Pi / linux 上移除 SSH key 上的(passphrase)。有兩種方式:

選項一:完全移除密碼片語(安全性較低,但更方便)

SSH 登入你的 Pi 後執行:

ssh-keygen -p -f ~/.ssh/id_ed25519

(如果你的金鑰檔名不同,請替換 id_ed25519 — 可以用 ls ~/.ssh 查看)

系統會詢問:

  1. 舊密碼片語(輸入你目前的密碼)
  2. 新密碼片語(留空,直接按 Enter
  3. 確認新密碼片語(再按一次 Enter

選項二:使用 ssh-agent(更安全 — 密碼片語快取在記憶體中)

在你的 Pi 的 ~/.bashrc~/.profile 中加入: