Resolving Merge Conflicts with Binary Files: A Step-by-Step Command Line Guide
The problem
During a git merge or rebase, you see the following merge conflict message:
During a git merge or rebase, you see the following merge conflict message:
A while back I wrote about managing local git branches with git rebase and I mentioned that I always submit my code changes with one commit only. No matter how many commits I make during my development process in my local branch when I prepare my code for code review and push it to remote, I squash all commits into one single commit, with one single commit message using git rebase.
Existem algumas maneiras diferentes de desfazer as coisas no git, mas para o propósito deste post vamos considerar o seguinte cenário:
There are a few different ways to undo things in git but for the purpose of this post we will stick with the following scenario:
When you work on a codebase with other people, you need to manage your local branches: you need to ensure that when you push some code and create a merge/pull request on the remote branch, your changes will be easily integrated with the main codebase. And by “easily” I mean preferably without merge conflicts or the dreaded message “your branch is xxx commits behind the target branch”. ?