Skip to content

Instantly share code, notes, and snippets.

@nara-l
Created February 7, 2019 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nara-l/37cbb7ce53a4336f55e9897d2ad9ec72 to your computer and use it in GitHub Desktop.
Save nara-l/37cbb7ce53a4336f55e9897d2ad9ec72 to your computer and use it in GitHub Desktop.
Add files to gitignore even after uploading to github
a. git rm -r --cached . # unstage all files on your local machine
b. add the said files to gitignore
c. git add . # add all files again
d. commit and push again or rebase. use rebase guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment