You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using gitui to make the first commit in a repository doesn't work, and somehow changes the active branch to master (this is not init.defaultbranch either, mine is set to main)
To Reproduce
Steps to reproduce the behavior:
Create a blank repository
Make a commit
Observe that it didn't commit anything
Open the Branches menu
The active branch has changed to master
git branch by now lists only the master branch, but it's not active
Expected behavior
The commit should have succeeded, and the active branch should not have been changed.
Thanks for reporting this. I reproduced it with commit signing enabled.
GitUI wrote the first commit, but the selected branch still appeared empty.
I opened #3059 with a fix and a regression test.
Until the fix lands, making the first signed commit with the Git CLI and then
continuing in GitUI avoids this case.
Activity
hrouault commentedon Nov 26, 2026
Thanks for reporting this. I reproduced it with commit signing enabled.
GitUI wrote the first commit, but the selected branch still appeared empty.
I opened #3059 with a fix and a regression test.
Until the fix lands, making the first signed commit with the Git CLI and then
continuing in GitUI avoids this case.