-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Closed
Copy link
Labels
investigation-neededLikely bugs, but haven't been reliably reproduced by a reviewerLikely bugs, but haven't been reliably reproduced by a reviewer
Description
Description
When I create a branch from a "detached HEAD" state (such as from a commit), the branch is created with a different history (my assumption is that it's master or the default branch)
Version
- GitHub Desktop: 1.5.0
- Operating system: macOS 10.13.6
Steps to Reproduce
- Check out a commit in terminal (I did
git checkout a813cc1as an example) and switch to Desktop

- In Desktop, create a new branch. Desktop should warn you that the new branch will be based off of the currently checked out commit.

- After creating a new branch, look at the history.
Expected Behavior
I'd expect the latest commit to be the one that I checked out (I did git reset --hard a813cc1 to simulate this in the UI):

Actual Behavior
The latest commit in the branch is more recent than the one I originally checked out:

Additional Information
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
investigation-neededLikely bugs, but haven't been reliably reproduced by a reviewerLikely bugs, but haven't been reliably reproduced by a reviewer