How to add new file in git ignore?

 For steps to add file in git ignore:

1. Go to .gitignore file and add the entry for the files or folder path you want to ignore.

2. git rm -r --cached .

3. git add .


Note: Whenever you find the file which is in git ignore file and still you are getting in git status then run the command as above. 

Comments

Popular posts from this blog