Merging to a branch in git without switching to it

后端 未结 3 1433
盖世英雄少女心
盖世英雄少女心 2020-12-23 21:46

I have an application running in a git repository on a branch (say dev). The application modifies the content in some the repository and commits them. I now hav

3条回答
  •  旧巷少年郎
    2020-12-23 21:57

    This works very well for me when wanting to merge two branches without having to checkout either of them:

    git fetch . :
    

    Other options are described here.

提交回复
热议问题