Git merge strategy to ignore deleted files

后端 未结 4 1295
悲&欢浪女
悲&欢浪女 2020-12-30 00:45

I have special branch (release branch) which is an exact copy of master branch with some files and directories removed. No development is happening on this branch, however i

4条回答
  •  醉话见心
    2020-12-30 01:31

    git merge master
    git status --porcelain | awk '{if ($1=="DU") print $2}' | xargs git rm
    git commit
    

提交回复
热议问题