So basically I am working on my website and I have 2 interns with me.
currently the branch structure is as :
so I need help with how to merge the branchs for me and my interns
what we are doing curently is as follows:
Also I want to from test into main should i merge that by doing git checkout main and then git merge test?
Yes, you can merge test into main. However, having separate development ("test") and production/release ("main") branches is an unnecessary complication for a simple project. Instead have one continuously ready for release main branch and use tags for releases.
What you're describing resembles the feature branch workflow. However, you're missing the review and test step before merging, and branches should be per feature not per person.
When you wish to release, make a tag (such as "prod" or "v1.2.3") and checkout that tag in production.
There is no need for a separate test branch because each feature branch is brought to go date and tested before merging.
The review, test, and merge process is complicated and typically managed via a merge or pull request on a development service such as Gitlab or Github.