初次換Mac,各種不熟悉,留個記錄以備后需。
?
安裝git
-
最簡單的圖形化安裝:http://code.google.com/p/git-osx-installer
-
安裝git-completion:
# 下載git-completion.bash
curl https://github.com/git/git/raw/master/contrib/completion/git-completion.bash -OL
# 復制git-completion.bash
cp git-completion.bash ~/.git-completion.bash
# 在~/.bash_profile 或者 ~/.profile里面追加
source ~/.git-completion.bash
-
安裝git-completion:
-
使用Mac Ports安裝:
- 安裝Mac Ports:http://www.macports.org/
-
安裝git:
sudo port install git-core +svn +doc +bash_completion +gitweb
-
配置git
- git config --global --add color.ui always
- 高級設置參照
- EOF
?配置vim可以參考這個強帖: The ultimate Vim configuration: vimrc
?
---EOF---
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
