#hasconfig

Gea-Suan Lingslin@abpe.org
2024-11-25

Git 的 hasconfig:remote.*.url:

在「How I configure my Git identities (benji.dog)」這邊看到的文章:「How I configure my Git identities」。

裡面在講 Git 的設定,以往我們習慣依據環境放到不同目錄裡 (像是公司的 repository 放到 work/),再加上 includeIf 去針對不同目錄給不同的值 (像是 email),這個功能是在 2017 年五月出的 Git 2.13 引入的,當初 GitHub 也有針對這個功能寫了一篇介紹:「Git 2

blog.gslin.org/archives/2024/1

#Computer #Murmuring #Network #Programming #Software #conditional #git #hasconfig #identity #includes #remote #url

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst