Command Reference

git push Tutorial

Explains how git push publishes local branches, how upstream tracking works, and why force-with-lease is safer than raw force push.

The short version

git push publishes local refs and objects to a remote repository.

Common forms

git push origin main
git push -u origin feature/login
git push --force-with-lease

--force-with-lease is the safer force option for collaborative work.