So we would be following Three branch structure main , develop and release
This branch is meant for backup so never push here
notethis branch will have code one version lower
We would working on this branch !
- Fork the branch then fork your forked branch to your
local system - make local branches at your system for the issues your working on once the issue is solved merge it with develop branch at your local
- push it to your forked repo at github and then send
pull request notenever push the local made branches for issue at yourlocal systemnoteuncheck fork main only box to fork all the branches while forking in your github from main organisation repofor exampleif i am asked to add forget password feature i will make seperate branch for feature at my local once the work is done i will merge it with develop in my local then push it to forked repo at github and will sendPull Requestto develop branch in main project
This branch will have production code
- all the issue related to merge conflicts will be managed by me so focus on the issue assigned to the particular developer
happy coding :)
- Use
Red Green Refactormethod To write test - write test for module you are going to develop make seperate folders for tests
- make seperate folder for module in the test folder
for exampleif you are writing test for module namedocument.jsthen make folder of namedocumentand write tests there.