0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ファイルの削除

Last updated at Posted at 2020-07-26

##GitHub commit済ファイルの削除手順

$ git rm -rf ファイル名
rm 'ファイル名'

##GitHub commit前ファイルの削除手順

$ git rm remove.js

上記エラーが出た場合

error: the following file has changes staged in the index:
    remove.js
(use --cached to keep the file, or -f to force removal)

ステージングされた状態のファイルをリポジトリから削除したい場合には、次のように "-f" オプションをつけて "git rm" を再実行します。
無事削除できました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?