Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@trangthanhtam
Copy link

trangthanhtam commented Feb 20, 2019

Hi, simple and perfect 👍

@scarneros
Copy link

scarneros commented Feb 20, 2019

Thanks! Works really well!

@t4tiwari19
Copy link

t4tiwari19 commented Feb 21, 2019

Worked like a charm , Thanks for sweet and simple solution

@Tahirhan
Copy link

Tahirhan commented Mar 19, 2019

Thanks

@pb25193
Copy link

pb25193 commented May 23, 2019

didnt work for me, i got: pathspec 'node_modules' did not match any files

note: my node modules is inside a subfolder. can anyone help?

Copy link

ghost commented Jul 5, 2019

Thanks!

@tgarijo
Copy link

tgarijo commented Jul 15, 2019

Thank You!!

@kor1k
Copy link

kor1k commented Aug 21, 2019

Thank you, it works fine!

@juampi92
Copy link

juampi92 commented Aug 21, 2019

Thanks a lot man!

@sabarasaba
Copy link
Author

sabarasaba commented Aug 21, 2019

@juampi92 You look hot with that dog, can I take you on a date?

@juampi92
Copy link

juampi92 commented Aug 21, 2019

@sabarasaba with me or with the dog?

@sabarasaba
Copy link
Author

sabarasaba commented Aug 21, 2019

@juampi92 yes

@clockshark
Copy link

clockshark commented Sep 27, 2019

worked for me..thanks

Copy link

ghost commented Oct 1, 2019

@juampi92 yes

Please let us know how the date went.

@bilalix
Copy link

bilalix commented Nov 12, 2019

Thanks!

@personalaccount
Copy link

personalaccount commented Nov 18, 2019

thanks :)

@misakimichy
Copy link

misakimichy commented Nov 22, 2019

Thank you!!!!

@abdalmoez
Copy link

abdalmoez commented Jan 28, 2020

Thanks!!!!!!

@CrazyOptimist
Copy link

CrazyOptimist commented Jan 29, 2020

Thanks

@DEEP0521
Copy link

DEEP0521 commented Feb 18, 2020

Thank you it's really helpful

@TamaraTorres
Copy link

TamaraTorres commented Mar 20, 2020

thanks!!!

@pawellesniowski
Copy link

pawellesniowski commented Apr 2, 2020

thanks a million!!!

@joctorres13
Copy link

joctorres13 commented Apr 22, 2020

thank you!

@DragonflyNet67
Copy link

DragonflyNet67 commented Apr 25, 2020

Thank you, exactly what I was looking for

@luislortega
Copy link

luislortega commented Apr 29, 2020

Nice TY dude.

@giovanialtelino
Copy link

giovanialtelino commented Jun 29, 2020

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

@AlbertBeweb
Copy link

AlbertBeweb commented Sep 6, 2020

Thank you !!

@Nour963
Copy link

Nour963 commented Oct 14, 2020

Thanks!

@HumayunNaseer
Copy link

HumayunNaseer commented Dec 10, 2020

<3

@DHBuild002
Copy link

DHBuild002 commented Dec 15, 2020

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