Ben Biddington

Whatever it is, it's not about "coding"

Git — remove all deleted files in one line

with one comment

I got sick of manually removing deleted files, this makes it easier:

$ git rm $(git status | grep deleted: | awk '{ print $3 }')
Advertisements

Written by benbiddington

3 January, 2010 at 13:15

Posted in development

Tagged with , ,

One Response

Subscribe to comments with RSS.

  1. This would do same. ^_^

    $ git add -u

    moobitokjr

    2 February, 2010 at 10:10


Leave a Reply

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: