I try to work using Git.
I have experience many conflicts problems and try to understand better Git in order to implement a workflow that should prevent if possible conflicts (even if it is not always possible)
I have origin/master branch (=dev branch) on my Gitlab remote repository and the corresponding master in my local repository.
I have defined a backlog with differents isues.
I decide to work on issue #1 so I pull origin/master to be up-to-date in my local master and create a local branch name feature/1.
I work on this feature/1 branch and commit yesterday.
I did not finish to work on this issue but when I finish, but to complete workflow, I will push this feature/1 on Gitlab and make a merge request in order to merge with origin/mater. After that, I pull origin/master, suppress my local feature/1 branch and create a new feature/2 branch.
This morning, I checkout on my local master to verify I am still up-to-date with origin/master and it is the case except that git mentionned that 3 files have been modified:
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: myapp/__pycache__/settings.cpython-37.pyc
deleted: myapp/__pycache__/urls.cpython-37.pyc
deleted: myapp/__pycache__/views.cpython-37.pyc
I understand pychache files are pre-compiled code to speed code execution.
But I did not understand: I have not worked on my local master and pycache is mentionned in my .gitignore files store at the root.
So why this files are mentionned? If I commit, I will ahead of one commit with origin/master and will have to push?
What is wrong with my workflow?