@shota1995

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 hub上でのwebページの公開

解決したいこと

ここに解決したい内容を記載してください。

初めての質問失礼します。
git hub上でwebページを公開したいのですが、ドメイン名の最後の部分を消去したいのですが、どのようにすれば消去できるのでしょうか。お手数かけますが回答の方よろしくお願いします。
スクリーンショット 2021-02-18 0.14.24.png

例)

NameError (uninitialized constant World)
```

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

該当するソースコード

ソースコードを入力

例)

def greet
  puts Hello World
end

自分で試したこと

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

0 likes

1Answer

結論 レポジトリ名を「shota1995.github.io」で作り直してみてください
※settingから別レポジトリの名称変更を当ててみましたが404エラーになりました。

以下説明です

  1. 右上の「+」から新しくレポジトリを作る
  2. 名称を「shota1995.github.io」とする
  3. 下の参照URLのコードをコマンドプロンプト等で実行する

###localにrepositoryをclone

git clone https://github.com/shota1995/shota1995.github.io

Hello World!!!

cd username.github.io
echo "Hello World" > index.html

###githubへpush

git add --all
git commit -m "Initial commit"
git push -u origin main

最後にブラウザでアクセスして確認
問題が無ければデータを移す

参考URL github公式
https://pages.github.com/

0Like

Your answer might help someone💌