From: Ludo Pulles <ludo.pulles@gmail.com>
To: git@vger.kernel.org
Subject: Bug: being stuck in rebase mode when accidently typing `git am`
Date: Thu, 10 Apr 2025 16:35:17 +0200 [thread overview]
Message-ID: <76edd34d-3fd1-437e-b8d3-7e64e99644a2@gmail.com> (raw)
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue)
1. Run `git init` in an empty directory, and commit once.
2. Run `git am` and press Ctrl-C.
3. Run `git status`. It will say: 'You are currently rebasing. (all
conflicts fixed: run "git rebase --continue")'.
4. Run `git rebase --continue`
What did you expect to happen? (Expected behavior)
I expected to go out of the rebase mode such that `git status` would
say: "nothing to commit, working tree clean"
What happened instead? (Actual behavior)
It outputs: "warning: could not read '.git/rebase-apply/head-name': File
does not exist."
Moreover, you are in rebase mode forever, and you cannot escape from it!
What's different between what you expected and what actually happened?
Instead of going out of rebase mode (expected), you are still in rebase
mode and you cannot escape it (actual).
Anything else you want to add:
`rmdir .git/rebase-apply` fixes the issue
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.49.0
cpu: x86_64
built from commit: 683c54c999c301c2cd6f715c411407c413b1d84e
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
libcurl: 8.12.1
OpenSSL: OpenSSL 3.4.1 11 Feb 2025
zlib: 1.3.1
uname: Linux 6.12.22-1-lts #1 SMP PREEMPT_DYNAMIC Tue, 08 Apr 2025
06:20:12 +0000 x86_64
compiler info: gnuc: 14.2
libc info: glibc: 2.41
$SHELL (typically, interactive shell): /bin/bash
[Enabled Hooks]
next reply other threads:[~2025-04-10 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 14:35 Ludo Pulles [this message]
2025-04-11 18:23 ` Bug: being stuck in rebase mode when accidently typing `git am` D. Ben Knoble
2025-04-11 18:32 ` D. Ben Knoble
2025-04-11 19:13 ` Phillip Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76edd34d-3fd1-437e-b8d3-7e64e99644a2@gmail.com \
--to=ludo.pulles@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).