How to prevent git branching and merge on same branch? -


i had work on laptop on dev branch, pushed.

later, did work on desktop, on dev, , when went push it, failed message "fetch first". did pull , merged, pushed.

it ended looking this:

enter image description here

as can see, split in dev branch merge. obviously, have been prevented if had remembered fetch first before commit.

but @ point bitbucket rejected push, there have done prevent merge , nice straight timeline?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -