New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a branch from a commit / detached HEAD has an unexpected recent history #6335
Comments
Thanks @donokuda!
Clarifying question on step 2. Is that the actual behavior or the behavior you think should happen? On the final "actual behavior," is the commit that was actually the most recent the one that's the latest on master? Just trying to understand specifically what's happening instead of what should happen. |
Oops! I was vague on purpose because I didn't want to assume what was happening. 😅
This is the actual behavior.
I believe that's the latest on master. |
So I followed the steps and my outcome was the same as your Expected result (ie, branch is 8 days old, and so is last commit). If I switched branches back to I did not use Is this issue a dupe of this? #6085 |
I just realized that I didn't include the initial history in the first screenshot, which probably doesn't help troubleshooting. Here's a gif reproducing the issue that I'm running into:
Seems like it if the issue is confirmed. |
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
Steps to Reproduce
git checkout a813cc1
as an example) and switch to DesktopExpected 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
The text was updated successfully, but these errors were encountered: