Git Push

A git push operation will push local changes in your local repository to the central source repository.

It’s usually safer to begin with a git pull operation first - this is to get changes from other team members from the central repository into your local repository. GIT won’t let you push until you do this usually. To do it just do “git pull”. You might see merge conflicts which have to be resolved.

Then you can just do “git push”.

It’s that simple. Here is an example:

Tada! We’ve pushed our changes to the central GIT repository.