作成したコミットのコミットメッセージを変更したかったので、次のことを試みました。
git commit --amend
(私が通常行うように)、しかし私はエラーを受け取りました:
Unable to find modified files; please check git status
これは奇妙なことです。コミットからファイルを追加/削除しようとはしていないので、メッセージを変更したいだけなので、ファイルを変更したかどうかは関係ありません。
誰かがこのエラーメッセージを説明できますか(そして理想的には、どうすればそれを乗り越えることができますか)?
* 編集 *
Mellowcandleが私のgitステータスをリクエストしました。ここにあります(多かれ少なかれ):
# On branch some_branch
# Your branch is ahead of 'origin/some_branch' by 1 commit.
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: static/js/someFile.js
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# some/other/file
# yet/another/file
*編集#2 *
git rebase -i
(with )を実行しようとすると、同じ問題が発生しreword
ます。
*編集#3 *
git config --list
GoZonerによって要求された、(わずかに匿名化された)の出力は次のとおりです。
user.name=My Name
user.email=email@example.com
push.default=upstream
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=git@github.com:someGitHubAccount/Apps.git
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.deploy.remote=origin
branch.deploy.merge=refs/heads/deploy
...*more branches that look similar*