If your goal is to update from a git over HTTPS, then you're looking for:
pip install --upgrade --force-reinstall git+https://github.com/username/repo.git@branch
You can omit the @branch if you want to use master/main.