Jarvie8176
4/27/2016 - 8:35 PM

resolve merge conflicts in command line

resolve merge conflicts in command line

squash commits in dev branch

git checkout -b origin/<dev-branch>
git rebase -i HEAD~<number-of-commits-in-dev-branch>
  • mark the first commit as "pick" and the others as "squash"
git push origin <dev-branch>
  • use --force if necessary

solve conflicts

git checkout <dev-branch>
git merge <base-branch>
  • then resolve conflicts using text editor
git add <resolved-file-dir>
  • add resovled files

git commit -m "message"