Skip to main content

2 posts tagged with "developement"

View All Tags

Git ours vs. git theirs

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

In Git, the terms ours and theirs are used to refer to the two conflicting versions of a file during a merge or rebase. Understanding which version is which is critical for resolving conflicts correctly [1].

How to replace one git branch with another

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Replacing one Git branch with another is a destructive operation that rewrites the history of the target branch. The method you provided using git merge -s ours is a clever and safe way to achieve this without a hard reset. This guide will walk you through the process, explain the commands, and provide a clear, step-by-step example.