Skip to content

Git commit message changed when pushing to GitHub? #78337

Answered by odinho
y-chen asked this question in Actions
Discussion options

You must be logged in to vote

I have the same issue. GitHub creates an automatic merge commit where they merge main back into the branch before running it. So that all changes from main are also included in the branch.

This can be useful if the intention is for it to be merged and for the combined result to work well on main. Like an optimistic merge queue with less waiting. However, I'm also not thrilled about it, especially that I don't know about it, and it seems very hard to get information about what happens.

It should be quite easy to work around though, you can skip this merge commit and go to the first parent. There are many ways to do that, i.e. you could git checkout HEAD^, or maybe even git checkout ${GITHU…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@y-chen
Comment options

Answer selected by y-chen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Actions Build, test, and automate your deployment pipeline with world-class CI/CD
2 participants