Front end capstone project repository
git checkout main
git fetch origin
git reset --hard origin/main
git fetch origin [branchName]:[branchName]
git checkout -b <branch_name>
git push -u origin <branch_name>
we do it on github
// Current branch : feature1
git switch main
git pull origin main
//now main branch in your local machine is up to date
git switch feature 1
git merge main
// resolve conflict if any
// commit changes