Git

How to avoid merge commits when syncing a fork

Whenever you work on open source projects, you usually maintain your copy (a fork) of the original codebase. To propose changes, you open up a Pull Request (PR). After you create a PR, there are chances that during its review process, commits will be made to the original codebase, which

Divine Odazie
Divine Odazie
Git

How to create and apply a Git patch file with git diff and git apply commands

An engineer just joined their first company. While debugging an issue, their co-worker shared a patch (also known as diff) file of changes to apply to their local branch of the same Git repository. The engineer could go line by line to retype and apply the changes, but doing so,

Divine Odazie
Divine Odazie
Git