Git pull without checkout?

后端 未结 5 1132
遥遥无期
遥遥无期 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:05

    Use

    git fetch
    

    instead. It updates the remote refs and objects in your repo, but leaves the local branches, HEAD and the worktree alone.

提交回复
热议问题