The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you confirm, when ^M is present in commit messages, interactive rebase can loose commits

Greg Domjan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2024

Commits where lost due to some exclusion during an interactive rebase.
I believe ^M is causing the history during rebase to be truncated for some reason, it doesn't prevent rebase, but it doesn't retain the commits which where not shown.
Possibly from the underlying git library and not sourcetree ui.

I've only noted this on a single repo and have not reproduced getting ^M chars into messages since.

In sourcetree the history was showing recent commits and their messages seemed clean

When I tried to interactive rebase I found that not all of the commits where presented, causing some concern, so before proceeding I made a new branch label.

I tired several different points and had different results as to how much of the history was displayed after the selected commit.

I tried a rebase while not all of the history was visible, and it rebased the last visible commit, truncating all other commits following!!

 

I also happened to investigate the history from the terminal, in the log messages I noted ^M chars being displayed for those commits where the history got truncated

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tinker Fadoua
Community Champion
May 15, 2026

Welcome to the Atlassian Community @Greg Domjan !

Just came across your question today.

I am sure by now it is no longer an issue.

Let us know if you need help with something else.

Best,

Fadoua

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events