1

How to git rebase and use ours as strategy using VSCode without using the terminal. I tried everything but couldn't find it with or without using extensions.

user3507230
  • 61
  • 1
  • 9

1 Answers1

1

As I mentioned, in case of conflict, accepting the changes in HEAD would be using a "ours" strategy.

But if there is no conflict, and you need to keep the ours strategy by default, then you need a merge driver in place, declared in a .gitattributes.

Once this configuration is done, any rebase would use the equivalent of a ours strategy, and no terminal would be needed.
You would need to change the .gitattributes afterward though, of that "ours" strategy would be permanent.

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755