Git 无法使用Bitbucket推拉
我对Bitbucket有些问题 我一直在尝试对我的git使用更感兴趣,并设法得到了一些错误。首先是合并冲突,解决了这个问题。 但每次我推git时都会出现以下错误: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
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