Integration with Git/GitHub¶
Since it does not support SSH key, it requires to enter username and password everytime. Config
credential as follows,
git config --global credential.https://git.overleaf.com.username YourOverleafAccount
git config --global credential.https://git.overleaf.com.helper store
The second line aims to store the password after the first input.
Finally, no need to enter username and password.
- Why do I have problems with loging in to Overleaf via git
- gitcredentials - Providing usernames and passwords to Git
Sync with GitHub¶
Directly operate on Overleaf via clicking the Menu button.
GitHub as Backup¶
If there are frequent updates from local laptop, such as bib files and figures, it might be better to add GitHub as a backup repo.
Suppose you have a project on overleaf.
- clone it to local laptop.
- create an empty repo on github, say
- add github as another remote repo:
git remote add backup email@example.com:szcf-weiya/NewRepo.git
- update from laptop to overleaf, such as uploading figures, updating bib:
git push origin master
- pull updates from overleaf:
- backup to github:
git push backup master