标签: push

git push >>致命:没有配置推送目的地

我还在浏览一些关于RoR的指南,我在这里部署演示应用程序

我按照说明:

完成Microposts资源后,现在是将存储库推送到GitHub的好时机:

$ git add .
$ git commit -a -m "Done with the demo app"
$ git push
Run Code Online (Sandbox Code Playgroud)

这里发生的错误是推动部分......它输出了这个:

$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
git push <name>
Run Code Online (Sandbox Code Playgroud)

所以我尝试按照说明执行此命令:

$ git remote add demo_app 'www.github.com/levelone/demo_app'
fatal: remote demo_app already exists.
Run Code Online (Sandbox Code Playgroud)

所以我推:

$ git push demo_app
fatal: 'www.github.com/levelone/demo_app' does not appear to be a git repository
fatal: The …
Run Code Online (Sandbox Code Playgroud)

git push ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.2

24
推荐指数
3
解决办法
4万
查看次数

Git推动私人回购

我一直在网络应用程序上的本地工作,我被要求将其推送到一个空的(只读取我的文件)私人仓库为这个项目创建.我是新来的git,我很难这样做.

有人能告诉我我做错了什么吗?

我首先在本地使用命令行导航到应用程序的主文件夹并初始化git.之后,我尝试克隆远程仓库:

git clone git://github.com/somename/Web-App.git
Run Code Online (Sandbox Code Playgroud)

但我得到错误:

克隆到'Web-App'...致命:远程错误:未找到存储库.

我知道回购在那里..我是否真的需要先从那个遥控器克隆或拉出,或者是否有办法推送到那个回购.

同样,我所要做的就是将我本地文件中的文件推送到我可以访问的特定仓库.

我真的很感激任何帮助.

git push github

24
推荐指数
3
解决办法
5万
查看次数

错误:无法在 ubuntu android studio 中读取来自 '/home/.cache/Google/AndroidStudio2021.1/tmp/intellij-git-askpass-local.sh' 的 Askpass 响应

我正在尝试将我的代码推送到我的位存储桶存储库,但从位存储桶更新后的最后几天开始,我必须使用令牌来推送代码。但我不知道在哪里添加令牌。谁能告诉我android studio的整个流程。我也阅读了 文档。但不知道如何在 android studio 中使用它。

android push bitbucket token android-studio

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

将Rails应用程序推送到Heroku时,"sqlite3.h"丢失了

我正在学习本教程,但是当我尝试推送到Heroku时失败了.似乎缺少"sqlite3.h".我是新手,所以我不确定哪些信息可以帮助人们诊断问题,所以这就是一切:).我在Mac OS X 10.7 Lion上运行.以下是我正在使用的所有内容的版本:

Amits-MacBook-Air-2:demo_app amitgupta$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
Amits-MacBook-Air-2:demo_app amitgupta$ rails -v
Rails 3.2.3
Amits-MacBook-Air-2:demo_app amitgupta$ sqlite3 -version
3.7.11 2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669
Amits-MacBook-Air-2:demo_app amitgupta$ heroku -v
2.25.0
Amits-MacBook-Air-2:demo_app amitgupta$ port -v
MacPorts 2.0.4
Entering interactive mode... ("help" for help, "quit" to quit)
[RailsApps/demo_app] > quit 
Goodbye
Run Code Online (Sandbox Code Playgroud)

当我尝试推送到Heroku时:

Amits-MacBook-Air-2:demo_app amitgupta$ heroku create --stack cedar
Creating floating-stream-8009... done, stack is cedar
http://floating-stream-8009.herokuapp.com/ | git@heroku.com:floating-stream-8009.git
Amits-MacBook-Air-2:demo_app amitgupta$ git push heroku master
Run Code Online (Sandbox Code Playgroud)

这是我得到的:

Counting objects: …
Run Code Online (Sandbox Code Playgroud)

git sqlite push ruby-on-rails heroku

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

如何在django中构建推送系统?

我需要在django中构建一个推送系统,基本上它的功能是将消息从服​​务器推送到浏览器.

由于nodejs不能使用,我更喜欢websocket或orbited,但我不知道如何在django中实现这两个中的任何一个.请给我推荐一种方法,这对我很有帮助,谢谢.

django message push orbited websocket

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

无法推送到github回购

我的回购:https://shadyabhi@github.com/shadyabhi/learnajax.git

shadyabhi@archlinux-N210 ~/github/learnajax $ cat .git/config 
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://shadyabhi@github.com/shadyabhi/learnajax.git
    fetch = +refs/heads/*:refs/remotes/origin/*
shadyabhi@archlinux-N210 ~/github/learnajax $ git config -l
user.name=shadyabhi
user.email=abhijeet.1989@gmail.com
merge.tool=vimdiff
github.token=1095de7027bVVVV01cfAAAAAa5fc8f6
color.ui=auto
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://shadyabhi@github.com/shadyabhi/learnajax.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
shadyabhi@archlinux-N210 ~/github/learnajax $ git push -u origin master
Password: 
fatal: Authentication failed
shadyabhi@archlinux-N210 ~/github/learnajax $ 
Run Code Online (Sandbox Code Playgroud)

现在,我无法进入我的回购.我已经检查了github.token与我的帐户设置相同.Ofcoarse,我输入正确的密码,但我收到此错误.

git version-control push github

22
推荐指数
4
解决办法
4万
查看次数

实时数据从服务器推送到iOS设备而无需APNS

我正在构建一个需要从服务器进行实时更新的iOS应用程序,我想在没有轮询的情况下完成此任务.

有没有人知道有助于实现这一功能的技术,工具,产品或库?

push real-time ios

22
推荐指数
1
解决办法
1万
查看次数

如何设置Mercurial上游

我为新项目创建了本地hg存储库:hg init ; hg addremove然后我创建了空的上游repo,并在那里推送了第一个版本:hg push https://remoterepo.

现在,我想将其设置https://remoterepo为默认上游,所以我可以在不给它的情况下执行hg push/pull.

我很惊讶谷歌没有给我一个直接回答"设置mercurial upstream",我也没有在SO找到直接答案.因此,为了所有使用SO作为howto的人的利益,这样做的正确方法是什么?

mercurial push pull

22
推荐指数
1
解决办法
3935
查看次数

递归Git推/拉?

我有一个包含其他git存储库的git存储库.是否存在以递归方式推送和/或拉取元存储库而不是子存储库的命令?

git recursion push pull

22
推荐指数
3
解决办法
1万
查看次数

APNS推送通知不适用于生产

我创建了一个应用程序来从Web服务器发送远程通知.当我在开发模式下测试应用程序时,所有通知都在手机上正确到达,在AppStore发布后,应用程序不再收到通知.

这就是我做的:

  1. 创建了生产私钥和开发私钥.
  2. 通过传递以前生成的CertFile,在我的App ID上生成两个SSL证书.我100%确定已正确生成2个密钥并正确传递它们以从App中的Dev Center下载SSL证书.
  3. 创建了一个用于开发的文件.pem和一个用于生成的文件(通过转换从我的KeyChain等提取的文件.p12).
  4. 创建了2个不同的配置文件,一个用于开发,另一个用于连接到步骤1的AppID的生产.
  5. 使用在步骤4中创建的正确Provisioning Profiles在Build Settings中签名应用程序.
  6. 创建了一个Web应用程序来捕获和存储用户令牌.
  7. 创建了一个php页面来测试Push Notification Sending.

这是我测试的:

  1. 使用沙盒链接上的telnet测试了开发生成的.pem文件,并获得了成功的答案.
  2. 使用telnet在生产链接上测试生产生成的.pem文件,并获得成功的答案.
  3. 我百分百肯定已经在我的网络应用程序中存储了我的iPhone的开发令牌.
  4. 我百分百肯定已经在我的网络应用服务器上存储了我的iPhone的制作令牌.
  5. 我100%肯定会将我的php页面传递给Apple Server正确的消息(用于开发和生产).
  6. php页面总是返回Apple Server的成功消息(用于开发和生产).

以下是我在Xcode上签署应用的方式:

在此输入图像描述 在此输入图像描述 在此输入图像描述 在此输入图像描述

这是发送通知的php页面的代码:

    $ctx = stream_context_create();

    //stream_context_set_option($ctx, 'ssl', 'passphrase', 'development_pwd');
    //stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck_development.pem');
    //$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); //test

    stream_context_set_option($ctx, 'ssl', 'passphrase', 'production_pwd');
    stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck_production.pem');
    $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx); //production

    echo "<p>Connection Open</p>";
    if(!$fp){
        echo "<p>Failed to connect!<br />Error Number: " . $err . " <br />Code: …
Run Code Online (Sandbox Code Playgroud)

xcode push apple-push-notifications ios

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