Git - 指定 Branch 匯出原始碼不含版本控制資訊 取得連結 Facebook Twitter Pinterest 以電子郵件傳送 其他應用程式 11月 21, 2014 匯出 master 的內容並打包: $ git archive master | tar -x -C /somewhere/else 指定特定格式,匯出然後壓縮,如匯出成 *.zip: $ git archive --format zip --output /full/path/to/zipfile.zip master 取得連結 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 名稱,就會發現同時丟往這兩個位置了! 閱讀完整內容
留言
張貼留言