Py学习  »  Git

如何通过git bash删除github远程repo上没有扩展名(二进制可执行文件)的文件?

Aashutosh Taikar • 5 年前 • 1563 次点击  

假设我的根repo中有一个没有扩展名(二进制可执行文件)的文件。我想知道如何通过git bash删除它。例如,在git回购中:

> ls  
client  client.c  server  server.c

注意,服务器、客户端没有扩展名。我想知道是否有任何方法可以使用通配符方法删除它们 * .

我试过以下方法,但不起作用:

> git rm --cached '\*.'
fatal: pathspec '*.' did not match any files
> git rm --cached '\*./'
fatal: pathspec '*./' did not match any files
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/49862
 
1563 次点击  
文章 [ 1 ]  |  最新文章 5 年前