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

后端 未结 4 1576
無奈伤痛
無奈伤痛 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:36

    If you are looking for a brand new pull from another branch like from local to master you can follow this.

    git commit -m "Initial Commit"
    git add .
    git pull --rebase git_url
    git push origin master
    

提交回复
热议问题