在没有输入密码的情况下推送到bitbucket

时间:2014-12-23 01:33:56

标签: java git cmd push bitbucket

我在java中做一个项目,在IDE中实现GIT。我想知道如何在不获取密码提示的情况下进行推送。我正在使用bitbucket。经过大量研究后,我发现了一个命令。

 git push --repo https://username:password@bitbucket.org/username/example9.git

这个推送代码在linux中运行良好。但是,当我在Windows cmd中使用相同的命令时,它显示以下错误。

    No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date

我也尝试使用ssh而不是http。但它给了我一个提示

are you sure? (yes/no)

执行push命令后,我不想获得任何提示。 我尝试配置.git / config文件并将源作为主文件。似乎没有什么工作。任何人都可以帮忙。我很久以前就被困在这里..谢谢你!

0 个答案:

没有答案
相关问题