ファイルの削除
GitHub のリポジトリにあるファイルはどれも削除できます。
参考: あなたがアクセス権のないリポジトリにあるファイルを削除しようとすると、Github はそのプロジェクトをあなたのユーザアカウントにフォークします。あなたはそこで変更をコミットし、オリジナルのリポジトリにプルリクエストを送信できます。
-
リポジトリ内で削除対象のファイルを見つけます。
-
ファイルの先頭にある をクリックします。
-
At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see "Creating a commit with multiple co-authors."
-
コミットメッセージのフィールドの下で、メールアドレスのドロップダウンメニューをクリックし、Gitの作者のメールアドレスを選択してください。 このドロップダウンメニューには、検証済みのメールアドレスだけが表示されます。 メールアドレスのプライバシーを有効化している場合、
<username>@users.noreply.github.com
がデフォルトのコミット作者メールアドレスになります。 詳細は「コミットメールアドレスを設定する」を参照してください。 -
コミットメッセージフィールドの下で、コミットを追加を現在のブランチか新しいブランチから選択してください。 If your current branch is
master
, you should choose to create a new branch for your commit and then create a pull request. For more information, see "Creating a new pull request." -
[Propose file change] をクリックします。
注意: Git はバージョン管理システムであるため、後でファイルを復元したいときのために常にバックアップを取っています。 If you really, really need to completely remove a file from a repository for some reason, such as a sensitive file that was accidentally committed, you should follow the steps in our article about removing sensitive data.