To switch to a different branch, open your terminal and use the following command:
git checkout branch-nameBefore 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 trueAfter configuring the strategy, run the following command to pull the changes:
git pull origin branch-nameAfter 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 pushgit checkout serverThen delete the node_modules folder
npm iAdd the .env file
Run start
npm start