-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for sync with GitHub repo. #43
Comments
Hi! Interesting idea, how would you like this to work? Git is pretty complicated and feature-rich itself, so I'm not sure if this is within the scope of this project. How about you map this project inside a script and execute the git commands yourself? |
Thanks! Ideally, it would be nice to have a way to allow for a Git repository and an Overleaf project to be kept in sync so that when changes are made to the Git repository's master branch, the changes are added to the Overleaf project, and when changes are made to an Overleaf project, the changes are committed and pushed to the Git repo as well. Some problems that come to mind with trying to do this:
The only solution I can think of is to sync Overleaf changes to Git by making new commits once every minute to a temporary branch with a name like
I wasn't sure if it was within the scope of this project either, but I figured it wouldn't hurt to share the idea with you in case you thought it has value. If you decide that it is indeed outside the scope of this project, I may end up doing just that! |
Hello! You can use a pre-commit hook to automate it one way. Create
This will allow you to get the remote changes and add them to your next commit. Sadly syncing from overleaf to github dynamically doesn't seem feasible to me unless you do it with |
Hello! Wouldn't using a pre-commit hook run the risk of overwriting data in the case of merge conflicts though? Also, syncing using |
The pre-commit hook doesn't force anything so in case of conflicts it should just fail allowing you to mana the merge (As far as I'm aware) |
@thevinter Good! Although ideally I would like to have an automated solution for syncing that wouldn't break in the case of a merge conflict, which I think means that this wouldn't work. Thoughts? |
Thanks for making this really cool project!
I was wondering if the developer would be interested in adding support for syncing between Overleaf and a GitHub repo? This would be really useful. Overleaf technically already has support for this, but it is behind a paywall.
The text was updated successfully, but these errors were encountered: