Skip to content

Instantly share code, notes, and snippets.

@paulallies
Last active November 12, 2023 23:00
Show Gist options
  • Save paulallies/0052fab554b14bbfa3ef to your computer and use it in GitHub Desktop.
Save paulallies/0052fab554b14bbfa3ef to your computer and use it in GitHub Desktop.
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@ujjwalbe
Copy link

ujjwalbe commented Sep 3, 2020

Thanks man

@smartens80
Copy link

+1

@Ryan-Wisniewski
Copy link

+1

@HardlyAnyHoldings
Copy link

+1

@peterburgs
Copy link

+1

@vollspy
Copy link

vollspy commented Jan 8, 2021

+1

Copy link

ghost commented Feb 8, 2021

Today is 3th line - > git push origin main
Because of git command changes.Thanks a lot.

@tjcchen
Copy link

tjcchen commented Feb 16, 2021

+1

@87stal
Copy link

87stal commented Feb 17, 2021

Thanks a lot.

@edvaldo-domingos
Copy link

thanks

@mmlakshmi97
Copy link

Thanks. It works.

@Drabis
Copy link

Drabis commented Jun 15, 2021

That's what I needed. Thank you 😊

@IgorKukoba
Copy link

+1

@RazvanBugoi
Copy link

This is great, thank you!

@lukasz6678
Copy link

+1

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