Git conflict (rename/rename)

Given the following test-setup: git init resolving-rename-conflicts cd resolving-rename-conflicts echo “this file we will rename” > will-be-renamed.txt git add -A git commit -m “initial commit” git checkout -b branch1 git rename will-be-renamed.txt new-name-1.txt git commit -a -m “renamed a file on branch1” git checkout -b branch2 master git rename will-be-renamed.txt new-name-2.txt git commit -a -m … Read more

How to avoid git conflicts in a team?

Before you dig deep into your workflow, before you spend a moment of time or a dollar of money rebuilding your communication processes, ask your team three questions: Do we enforce whitespace conventions? If we use IDEs, do they all use the same formatting and keyword settings? For example, Eclipse can automatically finalize parameters. Do … Read more