So where i work merges is frowned on and not really permitted. Team wants to use git rebase to maintain a single flow of the history and make it look linear. they dont want to see merge commits. but i came into a situation today and didn't know how to solve it. i was working on a feature branch called featureBranchA and i stashed my changes and did git pull origin develop to get changes from develop. the changes came but there was a conflict (even after the stash !!). it says the following:
CONFLICT (modify/delete): myapp/src/main/java/com/myCompany/app/rubberBands/crayons/CrayonMarker.kt deleted in 258dcbfccba83025cd0c3e1e22212e980a481a and modified in HEAD. Version HEAD of myapp/src/main/java/com/myCompany/app/rubberBands/crayons/CrayonMarker.kt left in tree.
so clearly i need to fix this conflict to move on. so i did the following commands as it looks just like some file reference needs to be updated (the CrayonMarker.kt file had been deleted but someone my git thought it was still there):
git add .
git commit -m "merging to resolve conflicts"
git stash pop
and i was back in business but my team was not happy as it 'merged' changes . they want rebase only. how could i have done this differently next time. after i fix the conflict do i just run:
git rebase develop
what do i do after that ? commit changes ?