fatal: Cannot rebase onto multiple branches.
有次做 git rebase 點知彈個 error 出嚟:fatal: Cannot rebase onto multiple branches. 研究咗一陣先發現係幾簡單嘅問題,記低方便下次再遇到可以快速解決。
有次做 git rebase 點知彈個 error 出嚟:fatal: Cannot rebase onto multiple branches. 研究咗一陣先發現係幾簡單嘅問題,記低方便下次再遇到可以快速解決。
記錄喺 AliCloud Simple Application Server 上面設定 Hermes Agent 嘅一啲筆記同埋遇到嘅問題。
如何在 Raspberry Pi / linux 上移除 SSH key 上的(passphrase)。有兩種方式:
SSH 登入你的 Pi 後執行:
ssh-keygen -p -f ~/.ssh/id_ed25519
(如果你的金鑰檔名不同,請替換 id_ed25519 — 可以用 ls ~/.ssh 查看)
系統會詢問:
Enter)Enter)在你的 Pi 的 ~/.bashrc 或 ~/.profile 中加入:
在日常開發中,我們經常需要使用 ESLint 來保持代碼質量和一致性。每次手動修復 ESLint 問題會很麻煩,但我們可以配置 VSCode 在保存文件時自動修復 ESLint 問題。
首先,確保你已經安裝了 ESLint 擴展。
打開 VSCode 的設定檔案(settings.json),添加以下配置:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"svelte"
],
"eslint.format.enable": true
}
editor.codeActionsOnSave: 當保存文件時,VSCode 會自動執行指定的 code actions。source.fixAll.eslint 會讓 ESLint 自動修復所有可修復的問題。
唔知大家有無覺得,唔同嘅 Cloud Provider 嘅 Portal 都有啲亂同慢。對新手嚟講真係好難搵到想要嘅功能同資料。
所以我就整理咗一啲有用嘅連結同資源,希望可以幫到大家更快上手同解決問題。
連結會不斷更新,如果你有任何好用嘅資源都歡迎分享俾我,我會加落去。
Hope you find it useful!