Git & Build Strategy
Git
Looking at the Github repo of the Frontend Project, you can see multiple branches and commits. For the first glance you may assume that main is the current production branch. However it’s not.
main is an old branch that was left for legacy reasons. The current production branch is upgrade. as of now.
dev is the staging branch, where we make changes and test them before merging into upgrade. It’s the branch that builds into dev.youlearnt.co
To contribute to the project, you need to follow this startegy:
- First you need to pull the
devwith the latest changes on your local machine. (Development Environmet). - Checking out from
devto a new branch, it would be your working branch, while manting naming conventions e.g.feat,refactor,chore, etc, then the name of the branch. e.g.feat/new-feature-name. - After finishing up with the development and testing locally. You can now make a PR with your branch with
git push origin -u HEADthen making a PR againstdev - In the descripotion try to make it as clear as possible and to descipe what your branch does and if possible how and why. Try to provide as much context as you can. For instance you can mention the trello card if pssible.
Build Strategy
(Eng. Mustafa will fill this part)