git push
Upload local commits to remote
RemoteSyntax
git push [remote] [branch]
Examples
git push origin main— push origin maingit push -u origin feature/login— push -u origin feature/login
Common flags & options
- •-u origin branch Set upstream
- •--force Force push (use with care)