1

コミットする前に、通常、次のコマンドを使用して、新しく作成したファイルをリポジトリに追加します。

git add -A

次に、次のコマンドを実行して、削除されたファイルをリポジトリから削除します。

git add -u

これらのコマンドを一緒に実行しようとすると、相互に排他的であると言われます。

git add -uA

私は明らかに何かが欠けています。これらのコマンドが相互に排他的であるのはなぜですか?

4

1 に答える 1

2

git add -Aすべてgit add -uの機能に加えて、いくつかの追加機能を実行するためです。

   -A, --all
       Like -u, but match <filepattern> against files in the working tree in addition to
       the index. That means that it will
       find new files as well as staging modified content and removing files that are no
       longer in the working tree.

git add -Aあなたがしていることには十分なはずです。

于 2013-09-19T16:41:24.250 に答える