如何在Visual Studio代码中执行git push? [英] How to do git push in Visual Studio Code?

查看:146
本文介绍了如何在Visual Studio代码中执行git push?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个推菜单项,但当我点击它时,除了一个微妙的进度条出现并没有完成,什么也没有发生。从Visual Studio Code的Docs页面,我发现这一行:凭证管理现在不由VSCode处理,并且该页面链接到凭证助手的GitHub页面,该页面对于其他远程服务器来说太具体了(在我的例子中,bitbucket ),并没有具体说明如何设置VS代码。

解决方案

如果你在windows中,在你的git中使用这行bash:
$ b


git config --global credential.helper wincred


下一次git会记住您的密码。这就是所有,VSCode将正常工作;)

再见字节!


There is a "Push" menu item, but when I click on it, nothing happens except for a subtle progressing bar showing up and never finished. From Visual Studio Code's Docs page, I found this line: "Credential management is not handled by VSCode for now," and that page links to a GitHub page on credential helper, which is too specific for other remote server (in my case, bitbucket) and not specific enough on how to set up for VS Code.

解决方案

If you are in windows use this line in your git bash:

git config --global credential.helper wincred

Next time git will remember your password. Thats all, the VSCode will work fine ;)

Bye Bytes !

这篇关于如何在Visual Studio代码中执行git push?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆