1
0
mirror of https://github.com/balkian/balkian.github.com.git synced 2024-11-10 05:32:29 +00:00
balkian.github.com/_posts/2013-08-22-Remove-git-files-with-globbing.markdown

12 lines
261 B
Markdown
Raw Normal View History

2013-08-22 23:57:31 +00:00
---
layout: post
title: "Remove git files with globbing"
date: 2013-08-22 23:14:00
tags: git
---
A simple trick. If you want to remove all the '.swp' files from a git repository, just use:
2013-08-23 12:47:29 +00:00
2013-08-22 23:57:31 +00:00
{% highlight bash %}
git rm --cached '\*\*.swp'
{% endhighlight %}