現在のブランチに対してインタラクティブなリベースを試みています。つまり、タイプミスを修正するコミットがあり、別のコミットの上に「修正」を加えたいと考えています。
時々これはうまくいきます。これにより、次のような奇妙な形式のエラーメッセージが表示されることがあります。
# git rebase -i
You asked me to rebase without telling me which branch you
want to rebase against, and 'branch.myBranchName.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git rebase <upstream branch>').
See git-rebase(1) for details.
If you often rebase against the same branch, you may want to
use something like the following in your configuration file:
[branch "myBranchName"]
remote = <nickname>
merge = <remote-ref>
rebase = true
[remote "<nickname>"]
url = <url>
fetch = <refspec>
See git-config(1) for details.
gitにブランチ(現在のブランチ)に対してリベースするように指示すると、次のように失敗します。
# git rebase -i myBranchName
(私のエディターは「noop」で開きます。これは、実際のエラーメッセージの代わりに「noop」と言っているgitだと思います)。私はかなりの編集者になり、次のようになります。
Successfully rebased and updated refs/heads/myBranchName.
エディターで現在のブランチの変更を確認し、修正としてマークするにはどうすればよいですか?