Created
February 7, 2019 19:08
-
-
Save nara-l/37cbb7ce53a4336f55e9897d2ad9ec72 to your computer and use it in GitHub Desktop.
Add files to gitignore even after uploading to github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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