Skip to content

Instantly share code, notes, and snippets.

@sabarasaba
Created July 10, 2012 02:19
Show Gist options
  • Save sabarasaba/3080590 to your computer and use it in GitHub Desktop.
Save sabarasaba/3080590 to your computer and use it in GitHub Desktop.
Remove directory from remote repository after adding them to .gitignore
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@misakimichy
Copy link

Thank you!!!!

@abdalmoez
Copy link

Thanks!!!!!!

@crazyoptimist
Copy link

Thanks

@DEEP0521
Copy link

Thank you it's really helpful

@TamaraTorres
Copy link

thanks!!!

@pawellesniowski
Copy link

thanks a million!!!

@joctorres13
Copy link

thank you!

@DragonflyNet67
Copy link

Thank you, exactly what I was looking for

@luislortega
Copy link

Nice TY dude.

@giovanialtelino
Copy link

I always need to search for it, guess If I comment, it will rank better at the searches. ;)

@AlbertBeweb
Copy link

Thank you !!

@Nour963
Copy link

Nour963 commented Oct 14, 2020

Thanks!

@HumayunNaseer
Copy link

<3

@DHBuild002
Copy link

Boom, worked like a charm for clearing my parcel cache. Removed it from the Remote Repo too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment