Search code examples
githubgit-commitgit-push

Ignoring certain files when pushing to github


I need to ignore some files when pushing to github account. I read about git ignore. How to add files into gitignore? Can anyone help on this?


Solution

  • Use the following command: git rm --cached FILENAME

    refer [1].

    [1] : https://help.github.com/articles/ignoring-files/