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.
Demo
If I click Commit
Remote repository does not know what happened.
Remote repository received these changes.
Reference
[1] http://stackoverflow.com/questions/2745076/what-are-the-differences-between-git-commit-and-git-push
No comments:
Post a Comment