DEV Community

Discussion on: Can Someone Explain Git Push and Git Pull?

Collapse
 
yuridevat profile image
Julia 👩🏻‍💻 GDE

The difference between the two of them is, that when working on a project on your private computer (local) you can push your changes to the remote code (e.g. GitHub; it is now saved and possible to be shared like you can do with google drive or dropbox).
Now let's say, a friend of yours also wants to make some changes to that code you pushed to GitHub. They can do so by pulling the code from GitHub to their computer (local environment). After finishing, they push it again to GitHub and now, YOU can pull the changes to your computer as well.

This helps you working on the same piece of code with your friends and colleagues and always be up to date with the latest code.