请稍侯

Gitcafe Pages

01 April 2015
更多

将博客搬到 gitcafe

    1. 在gitcafe创建一个项目: 和用户名一样, 我的是 whatwewant
    1. 必须提交到GitCafe的 gitcafe-pages分支:
      • git push -u origin master:gitcafe-pages
    1. 访问: whatwewant.gitcafe.io 即可

一个项目同时使用两个或多个远程仓库

[remote "gitcafe"]
    fetch = +refs/heads/*:refs/remotes/gitcafe/*
    url = git@gitcafe.com:whatwewant/whatwewant.git
[remote "github"]
    fetch = +refs/heads/*:refs/remotes/github/*
    url = git@github.com:whatwewant/whatwewant.github.io.git
  • git push -u gitcafe master:gitcafe-pages
  • git push -u github master