从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."