如何更改 Git config 的編輯器 取得連結 Facebook Twitter Pinterest 以電子郵件傳送 其他應用程式 12月 05, 2014 執行 git config -e,預設是打開 GNU Nano 編輯器,不過操作上不太順手,可以更改設定,改為自己喜歡的編輯器: $: git config core.editor <editor name> 編輯器可以是任意的,環境變數中找得到的,如果沒有就要自己加進去。 取得連結 Facebook Twitter Pinterest 以電子郵件傳送 其他應用程式 留言
Heroku + Bootstrappers 快速佈署 11月 26, 2014 Using `bootstrappers` to create an App $: bootstrappers <App> $: cd <App> $: git init $: git add . $: git commit -m 'Init' Modify Gemfile group :production do gem ‘pg' gem 'rails_12factor' end Update bundles with... $: bundle Deploy to Heroku $: heroku create <AppName> $: git push heroku master $: heroku run rake db:migrate $: heroku open => Check site. 閱讀完整內容
php/symfony - 在 ubuntu 執行 composer install 出現 "ext-curl *", "ext-gd *", "lib-icu" 的相依錯誤訊息 12月 02, 2014 如圖,剛下載的專案在新的環境中需要執行 composer install 來安裝所需的套件,此時很可能會出現缺少某些系統套件,在 ubuntu 可以利用 aptitude 安裝這些套件: ext-curl * $: sudo aptitude install php5-curl ext-gd * $: sudo aptitude install php5-gd lib-icu * $: sudo aptitude install php5-intl 縮成一行: $: sudo aptitude install php5-curl php5-gd php5-intl 閱讀完整內容
Git - 同時 push 到多個 remote 12月 05, 2014 倘若 Repository 中有多個 Remote 而且希望一次 push 操作同時丟到多個 Remote 上,可以輸入以下指令來編輯 config : $: git config -e 先前你如果已經設定好偏好的編輯器,則會使用設定好的編輯器進行編輯 。在檔案下方建立一個新的 Entry ,例如: [remote "all"] url=ssh://user@server/repos/g0.git url=ssh://user@server/repos/g1.git 然後 push 改指定 all 這個 Remote 名稱,就會發現同時丟往這兩個位置了! 閱讀完整內容
留言
張貼留言