Setup
- Create a project on Overleaf and get git link under "Share"
- Create a new project on GitHub
- git clone https://git.overleaf.com/12749096xxxxxx your_folder
- cd your_folder
- git remote rename origin overleaf
- git pull overleaf master
- git remote add github https://github.com/your_project_in_github.git
- git push github
- git remote add both https://git.overleaf.com/12749096xxxxxx
- git remote set-url --add --push both https://git.overleaf.com/12749096xxxxxx
- git remote set-url --add --push both https://github.com/your_project_in_github.git
Usage:
- git add .
- git commit -m "update"
- git push both
- git pull