1. Config after creating a book by...
1.1 By GitBook website
- cd ~/GitBook/Library/Import
- git clone https://git.gitbook.com/user/book.git
- cd ~/GitBook/Library/Import/book
- git remote rename origin gitbook
- git branch gitbook
- git branch bitbucket
- create a Bitbucket private repo
- git remote add bitbucket https://[email protected]/user/repo.git
- git push bitbucket bitbucket:master
1.2 By GitBook Editor
- cd ~/GitBook/Library/Import/book
- git branch gitbook
- git branch bitbucket
- create a Bitbucket private repo
- git remote add bitbucket https://[email protected]/user/repo.git
- git push bitbucket bitbucket:master
- create a GitBook repo
- git remote add gitbook https://git.gitbook.com/user/book.git
- git push -f gitbook gitbook:master