Windows Terminal 加入 Git Bash
在 Windows Terminal 的設定新增一個設定檔,命令列填 C:\Program Files\Git\bin\bash.exe ,就能直接開 Git Bash。
設定
欄位 | 值 |
|---|---|
名稱 | Git Bash |
命令列 |
|
啟動時載入的目錄 | 使用者資料夾(環境變數 |
Git Bash 沒有 dig
我原本是想用 dig 查 DNS,但 Git Bash 沒有這個指令:
bash: dig: command not found
最後還是用 WSL:
dig example.com +noall +answer -t A
不想開 WSL 的話,PowerShell 內建的 Resolve-DnsName 也能查:
Resolve-DnsName example.com -Type A
參照
24 November 2026