5

で変更をコミットに追加していgit add -pますが、手動ハンク編集モードを使用したいと思います。

私は単にこのハンクを持っています:

# Manual hunk edit mode -- see bottom for a quick guide
@@ -46,6 +46,7 @@ function signIn(email, password) {
             }
         })
         .catch((error) => {
+            console.log(error);
             ToastAndroid.show(translations.translations.error_occurred, ToastAndroid.SHORT);
             that.setState({isLoading: false});
         });
# ---
# To remove '-' lines, make them ' ' lines (context).
# To remove '+' lines, delete them.
# Lines starting with # will be removed.

追加した行を完全に削除して ( でconsole.log)、保存してエディターを終了すると、次のエラーが発生します。

error: corrupt patch at line 12

私は自分が間違っていることをまったく知りません。

4

1 に答える 1