問題タブ [git-patch]
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 diff --word-diff のような変更を表示できますか?
コードベースの多くの単一単語パターンを再帰的に置き換えました。コミットする前に、それぞれに誤った置換がないか確認する必要があります。what uses withgit add -p
の形式を使用すると、行全体ではなく、変更された単語のみがマークされます。--word-diff
git diff
誰かがここで同じことを尋ねましたが、それ以降に実装されたのでしょうか? https://groups.google.com/forum/#!topic/git-users/7uO2OUJGvP0
git - git add -p (インタラクティブ パッチ) と編集モードで「xx 行目のパッチが壊れています」というエラーが表示される
で変更をコミットに追加していgit add -p
ますが、手動ハンク編集モードを使用したいと思います。
私は単にこのハンクを持っています:
追加した行を完全に削除して ( でconsole.log
)、保存してエディターを終了すると、次のエラーが発生します。
私は自分が間違っていることをまったく知りません。