I'd like to push changes of an overleaf project to multiple branches besides the master on Git. Would that be possible?
Asked
Active
Viewed 892 times
2 Answers
2
If by "overleaf" you mean that Git repository project has multiple sub-project as submodules, then said overleaf project can:
- loop over its submodules
- push its
masterto any branch it wants for each submodule subrepo.
But if it is the opposite, meaning a subproject derived from the overleaf project knows about said overleaf project (and the overleaf one has no idea of how many subprojects there are), then you need a script which, in each subproject repo, would fetch the main project master branch -- for instance -- to any local branch you need.
git fetch mainProject master:myBranch
VonC
- 1,129,465
- 480
- 4,036
- 4,755
1
It looks like the Overleaf web UI only cares about the main branch:
Known Limitations
Branches: The Overleaf Git system does not support branching.
Source: https://www.overleaf.com/learn/how-to/Using_Git_and_GitHub
jkmacc
- 5,433
- 3
- 27
- 27