問題タブ [git-add]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
git - 変更を破棄する git add -p を中止するには?
論理的な個別の変更セットを構成するいくつかのファイルを実行git add
し、それらに他の変更を加え、.xml を使用して別の論理的な変更セットを抽出しましたgit add -p
。途中で、前のセットをまだコミットしていないことに気付きました。
の対話型ヘルプにgit add -p
は、次のオプションのみが表示されます。
追加したパッチをリセットするにはどうすればよいですか?
git - ファイルが追跡されていて、それを変更した場合、追加せずにコミットできますか?
<filename>
git によって追跡されている
と仮定すると、 ?git commit -m "message" <filename>
を実行せずに可能
です。git add <filename>
git - git rmを使用せずにファイルを削除するGit
マージの競合に対処しているときに、(Finder を介して) ファイルを削除することがよくあります。マージを終了しようgit rm my_file.txt
とすると、エラーが発生しfatal: unable to stat 'my_file.txt': No such file or directory
ます。
CLI にアクセスして常にgit rm my_file.txt
.
git - git add の違い。そして git add --all?
次の間に違いはありますか:
と
?