Quantcast
Channel: How to do 'git checkout --theirs' for multiple files (or all unmerged files) - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Ondweb for How to do 'git checkout --theirs' for multiple files (or all unmerged files)

$
0
0

You can use the below commands to checkout multiples files on unmerged path

git checkout --theirs `git status | grep "added by them:" | awk '{print $NF}'`

execute the below command to commit the above files

git commit `git status | grep "added by them:" | awk '{print $NF}'`

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>