Git upload the local changes to the git repository with commit
1. Pushing the changes to main branch or specific branch
git push origin <branch-name> |
git push origin main |
2. creating new branch uploading to github.com
git push -u origin <new branch> |
Directly pushing to the origin without branch return error
git push -u origin <new branch> works
Changes made : branch added