Git pull without checkout?

后端 未结 5 1140
遥遥无期
遥遥无期 2020-12-22 20:05

I\'m used to running git pull and other commands from within a branch I\'m working on. But I have set up a development server that several people work on, so I don\'t want

5条回答
  •  心在旅途
    2020-12-22 21:10

    EDIT: Use 'git pull' It will fetch all the branches from the repo and Also update to latest if branch exits on the local system for current branch only. Note: git pull is equivalent to fetch+merge which fetch all the branches but merges only the current branch.

提交回复
热议问题