Commit All and Push: same as Commit All, but pushes changes to the remote repository. Commit All and Sync: saves changes to local repository, pulls changes from the remote to sync with local changes, and then pushes changes to the remote repository.
Commit - committing is the process which records changes in the repository. Think of it as a snapshot of the current status of the project. Commits are done locally. Push - pushing sends the recent commit history from your local repository up to GitHub.
Commit saves the changes you made only to the local repository but not to the remote repository. Your commits are not automatically synchronized to the remote repository – you have to explicitly push the commits you want to share. When you use the push command, you apply your changes to the upstream repository.
Commit Staged and Sync Locally commit changes that are in the stage area, pull of existing modifications in the remote repository, and send commits to the remote repository. So the name " sync ", at the end of the operation, your local repository must be fully synchronized with the remote.
See more from Microsoft here
To add to camieblanch's answer. I found this helpful picture/post from tanascius (here). "Here is a nice picture from Oliver Steele, that explains the git model and the commands:"
Checkout on this. It will be helpfull for understand push, pull, commit and sync.
https://learn.sparkfun.com/tutorials/using-github-to-share-with-sparkfun/committing-pushing-and-pulling
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With