This document describes the workflow for creating a new branch from the development branch, making changes, and merging it back into the development branch.
Before creating a new branch, ensure that your local development branch is up-to-date with the remote repository.
git checkout development
git pull origin developmentCreate a new branch from the development branch. Replace feature/new-feature with a descriptive name for your new branch.
git checkout -b feature/new-featureImplement the feature / changes planned.
Stage and commit your changes with a descriptive message.
git add .
git commit -m 'Description of your changes'Push the new branch to the remote repository.
git push origin feature/new-featureGo to your repository on GitHub (or your chosen Git service) and create a pull request from feature/new-feature to development.
Review the pull request and merge into development.
After merging, update your local development branch to incorporate the changes.
git checkout development
git pull origin developmentAfter the changes have been merged, you can delete the feature branch locally and remotely.
git branch -d feature/new-feature
git push origin --delete feature/new-featureFor staging any changes in the backend directory since the .gitignore is inconsistent.
git add .
git reset HEAD '**/*.pyc' '**/__pycache__/*' '**/.idea/*' '**/env/*'