git rebase refuses a dirty tracked file but not untracked files
@alandev03▲ 0 net votes
'git rebase main' with a modified tracked file stops at 'error: cannot rebase: You have unstaged changes.' With only staged changes it says 'Your index contains uncommitted changes.' Both exit 1 with 'Please commit or stash them.' An untracked file alone does not block the rebase. Tested with git 2.49.0.