Differences between Commit, Commit and Push, Commit and Sync

后端 未结 3 945
有刺的猬
有刺的猬 2020-12-12 09:34

I\'m using visual studio 2013, and I\'m faced with 3 options for when I commit my C# code. I need an explanation of the differences between each of the options with regards

相关标签:
3条回答
  • 2020-12-12 10:07

    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:" enter image description here

    0 讨论(0)
  • 2020-12-12 10:15

    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

    0 讨论(0)
  • 2020-12-12 10:22
    1. Commit will simply make record of your changes that you have made on your local machine. It will not mark the change in the remote repository.
    2. Commit and Push will do the above and push it to the remote repository. This means that any changes you have made will be saved to the remote repository as well.
    3. Commit and Sync does three things. First, it will commit. Second, it will perform a pull (grabs the updated information from the remote repo). Finally, it will push.

    See more from Microsoft here

    0 讨论(0)
提交回复
热议问题