2017年12月12日 星期二

Overleaf with Github


Setup
  1. Create a project on Overleaf and get git link under "Share"
  2. Create a new project on GitHub 
  3. git clone https://git.overleaf.com/12749096xxxxxx your_folder
  4. cd your_folder
  5. git remote rename origin overleaf
  6. git pull overleaf master
  7. git remote add github https://github.com/your_project_in_github.git
  8. git push github
  9. git remote add both https://git.overleaf.com/12749096xxxxxx
  10. git remote set-url --add --push both https://git.overleaf.com/12749096xxxxxx
  11. git remote set-url --add --push both https://github.com/your_project_in_github.git  
Usage:
    1. git add .
    2. git commit -m "update"
    3. git push both
    4. git pull