I have a repository (Git) with the code, I made a few commands push. But I forgot to do .gitignore file and now I'm in the repository files with the extension .pyc.
Is removing them manually give any effect? Is there any command?
I have a repository (Git) with the code, I made a few commands push. But I forgot to do .gitignore file and now I'm in the repository files with the extension .pyc.
Is removing them manually give any effect? Is there any command?
Step 1. Add the files that you wish to ignore to the .gitignore
For example: ./*.pyc
Step 2 As stated here:
git rm -r --cached
The update would be visible the next time you push.