[英]Is it wise to use Git to track the currently installed version of a system for multiple customers?
[英]How to use local installed git other than the system built in version?
我有自制軟件安裝git。 我想使用本地安裝的git而不是bash中內置版本的系統。
Brew已經創建了指向它安裝在/ usr / local / bin中的git包的符號鏈接。
我應該如何編輯.bash_profile,以便可以使用除內置的一個系統以外安裝的brew版本?
您可以將命令別名.bash_profile
任何內容。
alias git=/path/to/your/git
您可以使用which git
來告訴您實際上正在使用的git。 記住要獲取source ~/.bash_profile
或使用新的終端來查看更改。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.