git push
git pushgit push -u origin maingit push origin branch-nameWhat it does:
- Sends your commits to the remote (for example GitHub).
- First time you push a branch, use:
git push -u origin main. The-uremembers where to push. After that,git pushis enough. - If the remote has new commits, run
git pullfirst, thengit push.