Recently I started to work on a big project, I just cloned the repository, the main branch is called dev
all the pull requests are merged into that branch.
I haven't done any work on the repo, but for some reason when I do git status
it shows changes I don't have any idea. I do this in order to clean my git status:
git add . && git reset --hard HEAD
This way I just remove all those local changes that appeared magically and to make sure my dev
branch is up to date with remote I just make a git pull
However this is happening repeatedly, so this is becoming annoying. Today I checked there are some unstaged changes and looking to the remote dev
branch I can see that those changes were committed today. I think that for some reason git is synchronizing the dev
branch with my local dev
branch and showing changes as local changes.
Any idea why this could be happening?