So I was just trying to upload my code to git, I don't know what I did but somehow i'm in a bit of pickle.
Because there are so many conflicts in almost all of my files.
I don't want to resolve each conflict manually by going through each file because there are hundreds of files and there are multiple conflicts in each file.
So how do I tell git to accept all current changes but not the incoming changes or vice versa? Thanks
git checkout --ours [filename]
git add [filename]
https://dev.to/willamesoares/git-ours-or-theirs-part1-agh
To initiate the merge with this intent, see this post.
git checkout --theirs .
git add .
or
git checkout --ours .
git add .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With