2016年3月13日 星期日

用 github app push local repo to bitbucket

假設你安裝好 github on windows 但是今天想要 push 一個 local repo 到 bitbucket
需要幾個步驟

1. 在 bitbucket 建立一個新的 repo

2. 將 local repo remote url 設定為 bitbucket repo
    例如 git remote add origin http://<user>@bitbucket.org/<user>/<project>.git

3.加好 cert 檔案
   先找到 local 上面 ca-bundle.crt 檔案在哪裡
    git config --system http.sslcainfo <cert path>
   例如我的電腦上在 C:\Users\<user>\AppData\Local\GitHub\PortableGit_cf76fc1621ac41ad4fe86c420ab5ff403f1808b9\usr\ssl\certs\ca-bundle.crt

完成後就可以 push 到 bitbucket 了

  

沒有留言:

張貼留言