1. Config after creating a book by...

1.1 By GitBook website

  1. cd ~/GitBook/Library/Import
  2. git clone https://git.gitbook.com/user/book.git
  3. cd ~/GitBook/Library/Import/book
  4. git remote rename origin gitbook
  5. git branch gitbook
  6. git branch bitbucket
  7. create a Bitbucket private repo
  8. git remote add bitbucket https://[email protected]/user/repo.git
  9. git push bitbucket bitbucket:master

1.2 By GitBook Editor

  1. cd ~/GitBook/Library/Import/book
  2. git branch gitbook
  3. git branch bitbucket
  4. create a Bitbucket private repo
  5. git remote add bitbucket https://[email protected]/user/repo.git
  6. git push bitbucket bitbucket:master
  7. create a GitBook repo
  8. git remote add gitbook https://git.gitbook.com/user/book.git
  9. git push -f gitbook gitbook:master

results matching ""

    No results matching ""