Git rm all that says "deleted by us" during a merge -


during merge, there within unmerged paths, there multiple files says "deleted us". if want keep them deleted, each 1 needs git rm applied.

how do 1 command instead of using git rm on each file?

just use other linux tools! that's terminal for

grep -rl "deleted us" | xargs git rm

if want affect files listed git status, can try:

git status --porcelain | cut -c4- | xargs grep -l "deleted us" | xargs git rm

--porcelain[=<version>]

give output in easy-to-parse format scripts. similar short output, remain stable across git versions , regardless of user configuration.

you filter sed/awk rather using cut finer control on pass in.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -