I have been the sole developer on a project for several years now and only recently got a second dev (who is even less experienced than me with git and Gitea) on the team. This means that I have a lot of source code that I am very protective of but I do need him to start understanding all of it and start implementing enhancements / bug fixes etc.
We have a convention that he would branch from the master branch, and push his feature branch to the origin (Gitea) from where I can view his code and ultimately merge back to master. While playing around in Gitea I noticed that you can set a branch to "protected" which is what I did for the master branch. This is great as it means he can't accidentally push to master but it means neither can I, once I've merged his feature branch to master locally.
Any advice on how to go about this? I don't want to unprotect master every time I need to merge changes and then protect it again.