Category: procedure
Here is the workflow based on your history:
1. Create the backup branch
Before pushing to main, create a branch that stays exactly as the code is right now.
git checkout -b backup-version-1
2. Push the backup to GitHub
This ensures your "old" version is safe in the cloud.
git push origin backup-version-1
3. Update the Main branch
Now, switch back to main, merge your changes, and push.
git checkout main
git add .
git commit -m "update main with new features"
git push origin main