Send changes to the master branch of your remote repository
El comando git push se usa para cargar contenido de un repositorio local hacia un repositorio remoto. El comando Push es cómo se transfiere los commits desde su repositorio local a un repositorio remoto.
El comando Push tiene el potencial de sobrescribir los cambios, se debe tener precaución al empujar.
A continuación los comandos más utilizados.
👉 Push changes to Remote
git push
git push <remote> <branch>
git push origin master
👉 Force the Push
git push <remote> --force
No use el indicador --force a menos que esté absolutamente seguro de saber lo que está haciendo.
👉 Push all of your local branches to the specified remote
git push <remote> --all
git push --all origin
👉 Push from local branch to Remote repository
git push -u <remote> <branch name>
👉 Delete a branch on your remote repository after the push
git push origin :<branchname>
👉 List the files you've changed and those you still need to add or commit