提交,提交和推送,提交和同步之间的区别 [英] Differences between Commit, Commit and Push, Commit and Sync

查看:681
本文介绍了提交,提交和推送,提交和同步之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是visual studio 2013,当我提交C#代码时,我面临3种选择。我需要关于每个选项与我的本地回购与GitHub回购有何区别的必要解释。


  • 选项1表示提交

  • 选项2表示提交和推送
  • 选项3表示提交和同步



我不太了解最后2个选项之间的区别。什么时候应该使用Commit和Sync而不是Commit和Push?

解决方案


  1. 记录您在本地计算机上所做的更改。它不会标记远程存储库中的更改。
  2. 提交和推送将执行上述操作并将其推送到远程存储库。这意味着您所做的任何更改都将保存到远程存储库中。
  3. 提交和同步有三件事。首先,它会承诺。其次,它会执行一次拉(从远程回购获取更新的信息)。

查看来自Microsoft的更多信息 here

I'm using visual studio 2013, and I'm faced with 3 options for when I commit my C# code. I need a necessary explanation of the differences between each of the options regarding what happens to my local repo vs. the GitHub repo.

  • Option 1 says Commit
  • Option 2 says Commit and Push
  • Option 3 says Commit and Sync

I don't quite understand the difference between the last 2 options. When should I use Commit and Sync as opposed to Commit and Push?

解决方案

  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

这篇关于提交,提交和推送,提交和同步之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆