Total Pageviews


What's the difference between 'commit' and 'commit and push' in Git?

When I want to commit changes into git repository, I see two options to commit. One is "Commit", another one is "Commit and Push".

Here has a clear picture
If you do git commit, it means you only commit changes into your local repository.
If you do git push, it means you will commit changes to remote repository.

If I click Commit

Remote repository does not know what happened.

 If I click "Commit and Push"

Remote repository received these changes.


No comments: