GitCheatSheet.org logo
Home / How To

Push data to a remote repository

# Push the current branch on the remote repository
git push

# Push the main (a.k.a. master) branch to the main branch on the "origin" remote
git push origin main