To switch to a different branch, open your terminal and use the following command:
git checkout branch-name
Before pushing new code, it's essential to pull changes from the remote repository. Use the following commands:
Use rebase as reconciliation strategy:
git config pull.rebase true
After configuring the strategy, run the following command to pull the changes:
git pull origin branch-name
After making changes, commit and push them to the remote repository. Follow these steps:
Add the changes:
git add .
Commit the changes:
git commit -m "Your commit message"
Push the changes to the remote repository:
git push
git checkout server
Then delete the node_modules folder
npm i
Add the .env file
Run start
npm start