Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一份 diff 如何提交多个 git repo (Travis CI 解决) #56

Closed
JimmyLv opened this issue Aug 30, 2016 · 1 comment
Closed

一份 diff 如何提交多个 git repo (Travis CI 解决) #56

JimmyLv opened this issue Aug 30, 2016 · 1 comment

Comments

@JimmyLv
Copy link
Owner

JimmyLv commented Aug 30, 2016

@JimmyLv
Copy link
Owner Author

JimmyLv commented Sep 14, 2016

# 添加两个 remote 地址
git remote set-url --add --push origin git@github.com:JimmyLv/jimmy.lv.git

# 同时 push 两个分支
git push --set-upstream origin master coding-pages

哎,GitHub Page 无法直接指定 coding-pages 分支,只能指定 gh-pages,那就只能用 Travis-CI 来自动化 build 一下了。

利用 SSH Key 来部署到 Coding:

(Travis CLI 自动更改的 .travis.yml 文件不靠谱)

push 时要用 ssh 地址而不是 https,即 git@git.coding.net:jimmylv/note-blog.git

@JimmyLv JimmyLv closed this as completed Sep 14, 2016
@JimmyLv JimmyLv added Closed and removed Backlog labels Sep 14, 2016
@JimmyLv JimmyLv changed the title 一份 diff 如何提交多个 git repo 一份 diff 如何提交多个 git repo (Travis CI 解决) Sep 14, 2016
@JimmyLv JimmyLv reopened this Sep 14, 2016
@JimmyLv JimmyLv added Backlog and removed Closed labels Sep 14, 2016
@JimmyLv JimmyLv closed this as completed Sep 14, 2016
@JimmyLv JimmyLv added Closed and removed Backlog labels Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant