3

I'd like to push changes of an overleaf project to multiple branches besides the master on Git. Would that be possible?

John Kugelman
  • 330,190
  • 66
  • 504
  • 555
hlambert24
  • 67
  • 8

2 Answers2

2

If by "overleaf" you mean that Git repository project has multiple sub-project as submodules, then said overleaf project can:

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