Ad space (banner)
🌿Git Lessons
Lesson 12 / 59

Sending Changes with git push

This lesson covers sending changes to a remote repository with git push. It's for anyone searching "git push usage."

git push sends the commits you've recorded locally up to the remote repository (like GitHub). Use it to share your changes with your team.

In Try It, run git push. The commits you made locally are reflected on the remote repository, and other team members can then pull that change themselves.

A common early mistake is forgetting to commit before pushing — git push only sends already-committed content, so you need to have run git add and git commit beforehand. In real teams, pushing frequently shares your progress with the team as you go, and also gives peace of mind that your work survives even if your computer were to fail.

Git
Try it (type this into the pseudo terminal)
git push

🧑‍💻 You can type this command into the Git pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)