Home > Tag Archives: git-merge

Tag Archives: git-merge

GIT: Replace the master branch with working branch

There is no direct way to replace the master branch of your git project with the working branch (or any other branch), but with the ‘ours‘ strategy of the GIT, you can achieve this task. This strategy will replace the master branch entirely with the working branch. Lets do this step by step: Checkout the working branch (say working_branch) Merge ... Read More »