Skip to content

completely remove a file from a git repository

20/02/2013

i committed  site path configuration file into git repository in my drupal module. After some commit only i created the gitignore  file and add  path configuration file into gitignore. I have to remove that configuration file from my  previous commit also. To do that just to :

$ git filter-branch --tree-filter 'rm -f my_file' HEAD

Reference: http://stackoverflow.com/questions/3458685/how-can-i-completely-remove-a-file-from-a-git-repository

thanks

Advertisements

From → Uncategorized

Leave a Comment

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: