search

Home  >  Q&A  >  body text

git - What is the difference between pull and get in resourcetree

What is the difference between pull and get here, and when should they be used respectively.

仅有的幸福仅有的幸福2768 days ago833

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-05-02 09:46:23

    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.

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:46:23

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

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:46:23

    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

    reply
    0
  • Cancelreply