Gitで変更をコミットし、メッセージを付けたい
メモ帳にテキストを書き、その変更をGitでコミットした後でエラーが発生しました。
エラー発生しましたが、とりあえずGitにメッセージを付けてEnterを押しましたが画面が変化なしでした。
エラーを解決し、メッセージを付けて保存したいです。
※メッセージの保存方法(Enterを押す)がそもそも誤っているのでしょうか?
メモ帳に保存したテキスト
Gitの練習をしてきます。 基本的なワークフローを学びます。 ・git add ・git commit
該当のソースコード(Git)
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Your branch is up to date with 'origin/master'. # # Changes to be committed: # modified: first.txt # # ------------------------ >8 ------------------------ # Do not modify or remove the line above. # Everything below it will be ignored. diff --git a/first.txt b/first.txt index 97d72f8..b291449 100644 --- a/first.txt +++ b/first.txt @@ -1,2 +1,4 @@ Git?̗??K?ⵂĂ??܂??B -???{?I?ȃ??[?N?t???[???w?т܂??B \ No newline at end of file +???{?I?ȃ??[?N?t???[???w?т? +?Egit add +?Egit commit \ No newline at end of file ~
上記の該当のソースコードのうち、エラーだと思われる部分(下から1~8行目)(Git)
Git?̗??K?ⵂĂ??܂??B -???{?I?ȃ??[?N?t???[???w?т܂??B \ No newline at end of file +???{?I?ȃ??[?N?t???[???w?т? +?Egit add +?Egit commit \ No newline at end of file ~
上記のエラーだと思われる部分が、本当はこうなるはずです(Udemyの動画ではこうなっていました)
Gitの練習をしてきます。 基本的なワークフローを学びます。 +・git add +・git commit
補足情報
Udemyの「はじめてのGitとGitHub」という教材のセクション3, レクチャー14の通りに実装中です。
パッと見たところ、エラーはなさそうなのですが、どこの部分をエラーと判断しましたか?
回答2件
あなたの回答
tips
プレビュー