git - resourcetree中的拉取和获取有什么区别
仅有的幸福
仅有的幸福 2017-05-02 09:44:23
0
3
811

请问这里的拉取获取有什么区别,分别在什么时候使用。

仅有的幸福
仅有的幸福

reply all(3)
小葫芦

For the latter, "get" means command git fetch,即从远程仓库抓取本地没有的修改;至于前者,大多数情况下,这里“拉取”的含义是git fetch紧接着一个git merge,对应git中的命令git pull,即从远程仓库抓取本地没有的修改并自动合并到远程分支。
由于git pull的结果有时会让我们看不懂,所以显式地使用fetchmerge命令会比较好一些。当然,对于一些简单的情况,前者git pullIt's a little more convenient.
If you must ask about the applicability of the two, I think it is difficult to say, because it involves many complex situations and other git commands. I think in most cases, the difference between the two is what I said before. Moreover, it is difficult to encounter or handle these complex situations if you only use a graphical version control system.
If anyone else has any suggestions, I'm all ears. After all, everyone's work experience is very different.

刘奇

The former is pull,后者是 fetchpull 等于 fetch + merge.

过去多啦不再A梦

The previous two upstairs have already said it very well. Let me put it in plain language again. Pulling will write the updates that your local warehouse does not have but the remote warehouse has to your local. The purpose of getting is more for Check whether the remote warehouse has been updated for the status of your local warehouse. That's it. It will not change your local warehouse

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!