Question: When merging dev
into main
, how do I keep them .ebextensions
and .elasticbeanstalk
commited on their respective branches but never overwriting each other during merges?
Requirement:
I wish to checkout new topic branches from dev
and merge them back into dev
, so these topic branches will need the same .ebextensions
and .elasticbeanstalk
folders to come with them.
Landscape: Working with Github on Flask project for Elastic beanstalk.
I have two primary branches
- main
- dev
I have dev
set up for one Elastic beanstalk environment, and main
set up in another. This means I have two different versions of the .ebextensions
and .elasticbeanstalk
folders.
.
├── application.py
├── .ebextensions
├── .ebignore
├── .elasticbeanstalk
├── .gitignore
├── main.py
└── .vscode
I keep messing up the files and having to write them back in locally and push to remote again to fix them.
Having read about a third of git-scm.com's
book so I think the solution will involve "onbranch:" includeIf
but the example is hard to follow.
Surely I've missed something, it can't be an uncommon requirement.