eiichi1215
@eiichi1215 (J F)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

助けてください初心者です gitについて

解決したいこと

ここに解決したい内容を記載してください。
cloud9にてgit pull origin main とと打つところを,
git pull origin masterと打ちました。そしたらよくわかんなくなってrしまったのですが、元に戻すにはどうしたらいいですか?

発生している問題・エラー

出ているエラーメッセージを入力
Merge branch 'master' of github.com:Eiichi1215/git_tutorial
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit
例)

NameError (uninitialized constant World)
```

または、問題・エラーが起きている画像をここにドラッグアンドドロップ

該当するソースコード

ソースコードを入力
Merge branch 'master' of github.com:Eiichi1215/git_tutorial
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit```

例)

```ruby
def greet
  puts Hello World
end

自分で試したこと

ここに問題・エラーに対して試したことを記載してください。

0

1Answer

こちらが参考になるかと思います。

今後こういう謎なものが出力された場合は、エラーぽいもの全てで検索かけたら良いですよ。
今回の場合だと、以下を丸っとchromeの検索窓に貼り付けて検索したら出てくるので!

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit```
1Like

Comments

  1. @eiichi1215

    Questioner

    ありがとうございます!

Your answer might help someone💌