Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # ファイルを指定してキャッシュを削除(実ファイルは残る)
  2. $ git rm —cached ファイル名
  3.  
  4.  
  5. # ディレクトリを指定してキャッシュを削除(実ディレクトリは残る)
  6. $ git rm -r —cached ディレクトリ名
  7.  
  8.  
  9.  
  10. //*****************************************************
  11.  
  12. 実ファイル or 実ディレクトリごと削除したい場合は、「--cached」を付けない
  13.  
  14. //*****************************************************
  15.  
  16.  
  17. # 実ファイルごと削除
  18. $ git rm ファイル名
  19.  
  20.  
  21. # 実ディレクトリごと削除
  22. $ git rm -r ディレクトリ名
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement