相关疑难解决方法(0)

致命:无法读取"https://github.com"的用户名:没有这样的文件或目录

当我尝试在Windows上使用GIT Bash来提取代码时,我遇到以下问题

我已经尝试实现此处提供的已接受解决方案:

但问题仍然存在.添加/删除原点后,我仍然得到相同的错误.

fatal: could not read Username for 'https://github.com': No such file or directory
Run Code Online (Sandbox Code Playgroud)

git github git-pull git-bash

70
推荐指数
11
解决办法
13万
查看次数

致命:无法读取"https://github.com"的用户名:没有此类设备或地址

我已经使用github和capistrano将我的Rails 4应用程序部署到Rackspace几周了.一切正常,直到我最终使我的存储库私有化.现在,我在运行'cap deploy'后收到以下错误:

"致命:无法读取' https://username@github.com '的密码:没有这样的设备或地址"

以下是我的deploy.rb文件中的代码

set :application, "appname"
set :repository,  "https://git_username@github.com/git_username/appname.git"
set :scm, :git
set :scm_username, "git_username"
set :scm_passphrase, "git_password"
set :scm_command, "git"
set :keep_releases, 5
set :branch, "master"
set :rails_env, "production"

set :deploy_to, "/var/www/doLocal"

set :user, "deployer"
set :password, "deployer_password"
set :use_sudo, false

ssh_options[:forward_agent] = true

server "/path/to/server", :app, :web, :db, :primary => true

after "deploy:restart", "deploy:cleanup"


namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => …
Run Code Online (Sandbox Code Playgroud)

deployment capistrano ruby-on-rails github

8
推荐指数
2
解决办法
2万
查看次数

Git Update之后无法推送

我刚刚从Git 1.7.11更新到1.8.5

现在,当我尝试推送到bitbucket时,我收到以下消息:

致命:无法读取" https://xxxxxx@bitbucket.org "的密码:没有这样的文件或目录

其中xxxxx是我的用户名.

推动仍在1.7的其他机器正常工作.

是什么导致这种情况,我该如何解决?

git bitbucket git-push

6
推荐指数
1
解决办法
6668
查看次数