Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 无法使用Bitbucket推拉_Git_Version Control_Bitbucket - Fatal编程技术网

Git 无法使用Bitbucket推拉

Git 无法使用Bitbucket推拉,git,version-control,bitbucket,Git,Version Control,Bitbucket,我对Bitbucket有些问题 我一直在尝试对我的git使用更感兴趣,并设法得到了一些错误。首先是合并冲突,解决了这个问题。 但每次我推git时都会出现以下错误: fatal: The current branch development has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin development

我对Bitbucket有些问题

我一直在尝试对我的git使用更感兴趣,并设法得到了一些错误。首先是合并冲突,解决了这个问题。 但每次我推git时都会出现以下错误:

fatal: The current branch development has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin development
我试图解决这个问题,但现在我只得到了这个:

fatal: unable to connect to bitbucket.org:
bitbucket.org[0: 131.103.20.168]: errno=Connection refused
bitbucket.org[1: 131.103.20.167]: errno=Connection refused
ip地址似乎是Bitbucket自己的


非常感谢所有帮助。

答案是编辑.git/config文件并从中删除Bitbucket部分。 然后添加以下内容:

git remote add origin git@bitbucket.org:username/file.git
在执行之前:

git push -u origin --all