but then all the other programmers are going to have issues
All the other programmers will have issue anyway.
You reset develop
to master
(the commit shouldn't be needed here), and forced push it.
That means, any other developer will have to:
git fetch origin
git checkout develop
git reset origin/develop
And then add/merge their current change.
I do a pull it will pull then all the old code again
It should not: the develop
branch and master
branch should point to the same point.
The other approach would be to revert the commits of the develop
branch, in order to generate a new commit which would cancel them.
The reset is the easier quicker way, but a git revert
allows to not rewrite anything, and push a new commit.