GitFlow finish feature with rebase doesn't work (WIN)

When I finish a feature in GitFlow and use rebase option I get this:

"Finish was aborted due to conflicts during rebase.

Please finish the rebase manually now.

When finished, re-run:

git flow feature finish 'myfeat' 'development'"

However, checking there are no conflicts and I can do it manually...through command-prompt

1 answer

1 accepted

You can resolve this in SourceTree. Here's what happens and what you should do:

  1. You Finish Feature with the Rebase option, and there are conflicts. SourceTree pops up a dialog saying you now have conflicts in your working copy that you need to resolve
  2. You resolve the conflicts using the file context submenu Resolve Conflicts - either use a merge tool, take one side or the other, etc.
  3. Once you've done that and there are no conflicts remaining, you continue the rebase. You can either do that via the Actions > Continue Rebase option, or you can use any Commit shortcut and SourceTree will prompt you to Continue or Abort the rebase anyway, because it knows the state and what should happen next.
  4. If more conflicts occur, repeat 2-3
  5. Once the rebase has finished, you will still be on the feature branch but the rebase has happened. So now you use the Finish Feature option again and everything will resolve.

Yes I know how to rebase and solve conflicts. The problem is that there are no conflicts. I think there might be a bug in the rebase option when finishing a feature. It doesn't seem to work through the UI. If I do a manual rebase it works without any conflicts. It is the windows version btw.

Yeah, I was testing this on the Windows version as well, and I couldn't reproduce that error with or without conflicts. Will try again.

My bad, I had a symlink hanging around in my embedded git version which was hiding this silently. Logged here: https://jira.atlassian.com/browse/SRCTREEWIN-548

so this fix will be in v 0.9.3 as I understand...or? btw, great feedback from you guys!!

Yep, I squashed it yesterday so it will be in the next update, 0.9.3. This will go out via our new installer / update system BTW, as discussed here: http://blog.sourcetreeapp.com/2013/05/13/new-installer-updater-for-sourcetree-for-windows/. I was not intending to do this update until next week though, can you manage until then? If it's a major problem for you we can possibly give you an out-of-band patch release in the mean time.

Glad to help!

no worries...I'll hold on

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

261 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot