【问题标题】:Project push error项目推送错误
【发布时间】:2016-02-03 04:50:31
【问题描述】:

您好,我是 githubbitbucket 的新手

我正在尝试将它用于我的 android 工作室 首先我在 github 中创建项目并创建存储库,然后我按照所有步骤推送项目。但是推送项目时出现错误 错误是:

推送失败
失败并出现错误:致命:无法访问“https://github.com/Harin-Kaklotar/ProjectWithNewBoston.git/”:无法连接到 127.0.0.1 端口 8087:连接被拒绝 如何解决?

我正在使用 Windows 操作系统
我用这个例子https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/#comment-23697

谁能帮忙解决这个问题?

【问题讨论】:

标签: git android-studio github


【解决方案1】:

我认为您应该按照以下步骤操作:

# add remote for local directory
git remote add origin https://github.com/Harin-Kaklotar/ProjectWithNewBoston.git

# add all file to stage
git add -A

# commit your code 
git commit -m 'first commit'

# pull to update the changes from remote
git pull origin master

# push to remote
git push origin master

如果你有任何问题,请给我评论。

【讨论】:

  • 您是否尝试以管理员身份打开“Git Bash”?
  • 是的,但它不起作用。我认为您的代码很完美,但这是与代理和端口设置相关的错误。
  • 我认为你应该使用最新的 Git Bash 版本,并尝试从你的 Git Bash ping github.com
猜你喜欢
  • 2010-10-15
  • 2017-03-12
  • 1970-01-01
  • 2020-09-12
  • 2013-01-07
  • 1970-01-01
  • 1970-01-01
  • 2018-10-15
  • 2018-05-11
相关资源
最近更新 更多