python - Git Checkout conflicts when i want to switch to another branch -


i have problem git. when want switch branch eclipse shows me this dialog.

and in src folder, have gitignore file these values

**/\__pycache__/  **/*.pyc 

when go source location of these files screenshot, delete them, same thing happens.

just because file matched .gitignore won't ignore if somehow added git (incidentally, *.pyc need in .gitignore).

this why not trust git guis in general, or attempt "automatically add changes".

you need checkout each branch , git rm file , commit that. if file not in tree current branch need manually delete filesystem if it's present on different branch. additionally, may need make sure ide isn't automatically regenerating .pyc files without requesting run or import program.

alternatively, use git filter-branch remove files history. require force push , more complicated.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -