无法使用 capistrano 在 github 中获取我的代码

发布于 2024-12-27 09:53:31 字数 795 浏览 1 评论 0原文

我在我的 github 存储库上进行了 HEAD 切换分支(并且不记得我做了什么),现在我似乎无法使 capistrano 工作。

当我...

set :branch, "master"

它说 master 不是存储库

set :branch, "origin"

时,它确实成功了,但是,它根本没有获取我的代码,它只显示 REVISION 文件。

# set branch removed

它说“HEAD”不是存储库。

到目前为止,以下是我的deploy.rb 的内容,

set :scm, :git
set :deploy_to, "redport"
set :deploy_via, :remote_cache

set :use_sudo, false
set :user, 'netxph'
set :repostiory, "https://[email protected]/netxph/redport.git"
set :repository_cache, "git-cache"
set :scm_verbose, true
set :normalize_asset_timestamps, false

提前致谢。

I did branch to HEAD switching (and can't remember the things I did) on my github repository and now I can't seem to make capistrano work.

when I...

set :branch, "master"

it says master is not repository

set :branch, "origin"

it does succeed, however, it's not getting my code at all, it only shows the REVISION file.

# set branch removed

it says "HEAD" is not a repository.

so far the following are the contents of my deploy.rb

set :scm, :git
set :deploy_to, "redport"
set :deploy_via, :remote_cache

set :use_sudo, false
set :user, 'netxph'
set :repostiory, "https://[email protected]/netxph/redport.git"
set :repository_cache, "git-cache"
set :scm_verbose, true
set :normalize_asset_timestamps, false

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂ガ小子 2025-01-03 09:53:31

我已经解决了...

我拼错了存储库(请参阅上文),并且有另一个存储库副本,其中包含空值。

:(

I've solved it...

I misspelled the repository (refer above) and have another duplicate of repository with empty values in it.

:(

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文