How to “pull” from a local branch into another one?

后端 未结 4 1574
無奈伤痛
無奈伤痛 2021-01-29 17:33

This sounds so simple, but I just can\'t figure it out. I made an experimental branch a while ago, and now I\'d like to pull in all the changes that happened on master since I m

4条回答
  •  不要未来只要你来
    2021-01-29 18:26

    you have to tell git where to pull from, in this case from the current directory/repository:

    git pull . master
    

    but when working locally, you usually just call merge (pull internally calls merge):

    git merge master
    

提交回复
热议问题