After understanding that stage is a branch but the changes are no longer important nor relevant. Simply using git reset --hard master
on stage
branch to move the branch pointer to master
should suffice. It will put the branch stage
on the exact same state master
is. THIS WILL DELETE YOUR CHANGES IN STAGE. Use it with caution.
Git merge from master to stage overwrite conflicts
-
11-10-2022 - |
Question
So I have a git branch that I wrote directly to master the fixes for the files. I was working on the files in stage in the same area. Now I have CONFLICTS. The problem is I'm having conflicts with about 1900 files. I don't want to go in and fix each conflict. Is there anyway to merge the master with stage overwriting all conflicts and taking what's in master?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow