In my case I had do open my git repo's config file and change http to https under the [remote "origin"] url.
[remote "origin"]