Git Troubleshooting

Git Worktree Cleanup Guide

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

avatar
Chi Yau

fatal: branch is already used by worktree at

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

avatar
Chi Yau

Git credential-manager-core is not a git command

最近set up 左新電腦 Copy 了原本用開既電腦既 .gitconfig (檔案路徑: C:\Users%username%.gitconfig) 當我run git pull 既時候出現了以下錯誤信息 git 'credential-manager-core' is not a git command. See 'git ==help' git …

Git refusing to merge unrelated histories

今日剛在Bitbucket 建立左一個新既 repos 當我嘗試 push local 的一個 git repos上去既時候出現了以下的錯誤信息 (當我嘗試 Pull 這個 repos 去 local 的 repos 時) “fatal: refusing to merge unrelated histories”