15 Comments

  1. very useful for git newbies (like me). one addition i would make is to change “*pyc” to “*.pyc”, otherwise you may accidentally wipe out files that end in pyc as well (rather than files with the extension pyc) – unlikely but possible!

  2. siddharth says:

    thanks…really helped

  3. reposted and linked back to your blog. Hope that’s ok. Really helpful!!!

    http://davidreynon.com/git-mass-delete-by-find/

    1. Yuji says:

      Hey David,

      Thanks for the link back! Awesome 🙂

    2. Yuji says:

      I’ve been using the following more often recently as I can never remember the -exec syntax.

      find -name “*.pyc” | xargs git rm

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s