Tag: github

推送到特定Git存储库时排除特定文件

使用Git推送到某些存储库时是否可以排除特定文件(* .ai,* .psd)? 我的需求来自于尝试使用Git进行版本控制和Heroku的部署。 如果我在部署中包含我的图形资源,则slug大小比期望的大。 但是,我确实需要在我的主github存储库中包含所有项目文件。

Cloud9,GitHub和Heroku(您要查找的页面不存在。)

我是Ruby on Rails的新手。 我使用:/ Cloud9使ROR应用程序/ GitHub存储文件并更新它们/ Hiroku作为免费服务进行生产 当我在Cloud9上运行应用程序时,它可以正常工作: https : //ruby2016-bbparis.c9users.io/ 当我把它推到GitHub时,它在Heroku上不起作用,我得到: 您要查找的页面不存在。 您可能输错了地址或页面可能已移动。 如果您是应用程序所有者,请检查日志以获取更多信息。 捕获屏幕 我的路线文件很简单: Rails.application.routes.draw do root ‘pages#home’ get ‘pages/about’, to: ‘pages#about’ end 我该如何解决这个问题?

为什么我的Rails应用程序没有推送到Github? (错误:1407742E:SSL)

我正在完成一个博客教程,我正在尝试最后推送到GitHub和Heroku。 我刚刚将popper gem添加到Gemfile ,然后像往常一样使用git push origin master推送到GitHub。 通常它然后要求我的用户名和密码,但我得到以下错误,不知道它意味着什么或为什么我得到它。 据我记得,我没有改变任何其他事情。 fatal: unable to access ‘https://github.com//FrogBlog.git/’: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 我不确定如何继续,因为这条消息对我没有任何意义。 如果需要,我可以从我的项目发布更多文件,请指教。

如何确保我在Heroku上托管的Ruby on Rails应用程序更新了我的GitHub仓库中的最新代码?

我是RoR,GitHub和Heroku的新手,所以我还是想弄明白这一点。 我在私人GitHub仓库中对某个文件进行了更改,并保存了更改(“提交”)。 我希望看到这些更改立即反映在应用的url上,但我看不到任何变化。 有时间延迟,还是我做错了? 我在GitHub中编辑了源代码。 我也使用过Aptana。

GitHub错误:未找到存储库。 致命:远程端意外挂断

我正在尝试跟随Michael Hartl的Ruby on Rails教程http://ruby.railstutorial.org/chapters/beginning#fnref:1.16 ,但我遇到了一个错误。 我注册了GitHub并发布了一个新的SSH密钥并创建了一个新的存储库。 但是当我尝试将我的存储库推送到GitHub时,我收到以下错误: ERROR: Repository not found. fatal: The remote end hung up unexpectedly 有任何想法吗? 以下是我在终端中输入的一些命令: Parkers-MacBook-Pro:.ssh ppreyer$ git remote add origin git@github.com:ppreyer/first_app.git Parkers-MacBook-Pro:.ssh ppreyer$ git push -u origin master ERROR: Repository not found. fatal: The remote end hung up unexpectedly – ppreyer 6 mins ago 这是git remote -v显示的内容: Parkers-MacBook-Pro:.ssh ppreyer$ […]

git push heroku – 停止heroku推送/上传大量文件

在我的工作目录中意外地放了一个非.gitignore排除的相当大的文件我提交了我的更改,推送到github然后做了一个git push heroku到生产。 当我看到它试图将数百MB的数据推送到heroku时,我杀死了这个过程。 我已经完成了一个git rm filename.extension然后是git add . ,一个新的提交和git推送。 但是当我开始使用git push heroku它坚持继续推送这个不可思议的大数据文件。 我如何检查有问题的文件是什么,以及如何让git / heroku忘记它曾经存在,所以git push heroku可以重新开始工作……? 谢谢!

用Rails推送Heroku Master错误

当我尝试git push heroku master命令时,我收到以下错误: matt@matt-desktop:~/Documents/Ruby/rails_projects/ninja_speak_app$ git push heroku master To https://git.heroku.com/limitless-inlet-4477.git ! [rejected] master -> master (fetch first) error: failed to push some refs to ‘https://git.heroku.com/limitless-inlet-4477.git’ hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. […]

对于Ruby on Rails项目拉取请求,git push to my fork失败

我做了修复和测试, git commit -a ,更新了我的分支,现在我正在尝试推送到我之前做过的GitHub分支: vagrant@rails-dev-box:~/rails$ git push mine my_fix Username for ‘https://github.com’: myusername Password for ‘https://myusername@github.com’: To https://github.com/myusername/rails.git ! [rejected] my_fix -> my_fix (non-fast-forward) error: failed to push some refs to ‘https://github.com/myusername/rails.git’ To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (eg ‘git pull’) before pushing again. See the […]

如何将本地文件夹与NitrousIO上的Git存储库同步

首先 – 我已经创建了git存储库,并在我的本地系统上创建了相同的本地存储库。 第二 – 在我的本地系统上工作并做了一些更改并将更改推送到Git存储库,以便我的本地系统源和git存储库现在同步 现在,我没有在我的本地系统上工作,而是想在NitrousIO上工作。 因此创建了与我的git存储库名称相同的文件夹,并且也执行了’git .init’ 。 基本上这是Ruby on Rails应用程序,因此遵循’rails new RKsJobs_Board’来设置文件夹然后git .init 我需要的是:由于远程git存储库是源代码的最新版本,我希望我的NitrousIO文件夹与远程存储库同步。 我怎样才能做到这一点? 我在根目录上对Nitrous进行了尝试,如下所示: action@rksrailszone-182221:~$ git checkout — RKsJobs_Board error: pathspec ‘RKsJobs_Board’ did not match any file(s) known to git. 我也从实际目录中对Nitrous进行了尝试,如下所示: action@rksrailszone-182221:~/RKsJobs_Board$ git checkout — RKsJobs_Board error: pathspec ‘RKsJobs_Board’ did not match any file(s) known to git. 我知道有一些可疑的东西让它工作但却找不到自己。 如果你们能帮忙,请告诉我..

在我的gemfile中从Github指定一个gem的分叉版本时,“找不到gem”错误

我正在尝试使用searchlogic gem的这个分叉版本 。 在我的gemfile中,我有 gem “searchlogic”, :git => “http://github.com/railsdog/searchlogic.git” 当我进行bundle install ,我收到此错误: Could not find gem ‘searchlogic (>= 0, runtime)’ in http://github.com/railsdog/searchlogic.git (at master). Source does not contain any versions of ‘searchlogic (>= 0, runtime)’ 导致此错误的原因是什么? 谢谢阅读。