私はこのプロジェクトにしか使用git add .
したことがありませんが、どこかで、サブディレクトリ (ユーザーと呼ばれる) の 1 つで奇妙な「変更されたコンテンツ、追跡されていないコンテンツ」エラーが発生し始めました。他のスタックオーバーフローの回答はうまくいきませんでした。チェックアウトを使用して以前のコミットに戻りましたが、バグのある/追跡されていないサブディレクトリは、ディレクトリの残りの部分で変更されませんでした。結局、手動で変更してから実行git checkout master
して、他のすべてが元の場所に戻っていることを確認しました。
Git は、私が二等分していると言っており、コミットさせてくれません。stackoverflow の回答を調べて、次のコマンドのいくつかを試しました。
git pull
:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
git pull origin master
:
fatal: 'origin' does not appear to be a git repository
git branch --set-upstream-to=origin/master master
:
error: the requested upstream branch 'origin/master' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
git pull --rebase
:
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
これらのコマンドがいたるところにある場合はお詫び申し上げます。git がどのように機能するかをすぐに実際に学習するつもりですが、今はプロジェクトをデプロイできるように変更をコミットしたいだけです。
更新: を使用git bisect reset
し、切り離された頭から新しいブランチを作成してから、マスターとマージしました。これにより、行った変更が保持されたので、コミットでユーザーを再度追跡する方法を理解する必要があります。git add users
まだ何もしていません。