简体   繁体   中英

How to delete undefined extension file from git?

I created a file accidentally with undefined extension in GIT bash . I have attached a screenshot:

截图

  • I tried git rm text,txt but that is not working .
  • I can delete directly from my repository from my folder but O want to delete via git bash.

作为text,txt不是通过git的跟踪(见git status输出),您只能通过正常删除它del命令(分别是rm在Unix系统上),而不是通过git rm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM