'Feature Branch Git Reset --hard to Master After Rebasing to Master

I'm using Sourcetree as a git GUI instead of running command-line git commands, so I am not sure about the exact parameters being added.

I have featureBranch with one commit, I rebase that commit onto dev branch (pre-prod)

I then reset --hard featureBranch to the latest commit on dev

The graph looks like line a single line (dev branch) and featureBranch is pointing to the latest commit on dev

There are two devs working on this project.

The motivation is to keep Merge commits out of the dev branch and to avoid friendship bracelet graphs

  1. What are the potential downfalls to this approach
  2. Will this work with 2+ commits on featureBranch


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source