When I came accross this issue none of the provided answers solved this problem or if it did I didn’t like recreating the project. The way I ended up solving the issue:
- Clicking on the “Connect to Team Projects button” (The plug next to the home button in the Team Explorer tab)
- Right click the project you are getting this issue on.
- Click Connect.
I guess the “Remember me” cookie timed out but gave me a generic response for trying to push or pull any code.