Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从git跟踪中删除指定路径中的文件_Git - Fatal编程技术网

从git跟踪中删除指定路径中的文件

从git跟踪中删除指定路径中的文件,git,Git,可能重复: 我有一个.DS_存储文件,它位于project/app/assets/javascripts路径中 如何从此文件中删除git跟踪?git rm--缓存的文件名。另请参见:Related:git rm--cached filename。另见:相关: rm .DS_Store git add -A git commit -m "getting rid of artifact." echo .DS_Store >> .gitignore git add -A gi

可能重复:

我有一个.DS_存储文件,它位于project/app/assets/javascripts路径中

如何从此文件中删除git跟踪?

git rm--缓存的文件名
。另请参见:Related:
git rm--cached filename
。另见:相关:
 rm .DS_Store
 git add -A
 git commit -m "getting rid of artifact."
 echo .DS_Store >> .gitignore
 git add -A
 git commit -m "ignoring artifact."