如何将本地远程分支与GitHub同步?

时间:2012-01-27 16:32:38

标签: git github

这可能是一个转贴,但我不知道如何找到我的问题。这是发生了什么:我写了一个提交,我把它推送到GitHub。它说

rkmba:project ryan$ git push origin 08-local:3.25.08
Enter passphrase for key '/Users/ryan/.ssh/id_rsa': 
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 498 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: /data/github/current/lib/github/config/resque.rb:27: undefined method `constantize' for "GitHub::Jobs::WikiReceive":String (NoMethodError)
remote:     from /data/github/current/lib/github/config/resque.rb:26:in `each'
remote:     from /data/github/current/lib/github/config/resque.rb:26
remote:     from /data/github/current/lib/rock_queue.rb:9:in `require'
remote:     from /data/github/current/lib/rock_queue.rb:9
remote:     from hooks/post-receive:27:in `require'
remote:     from hooks/post-receive:27
To git@github.com:MyRepo/MyRepo.git
   46fd407..fbad9c6  08-local -> 3.25.08

我只想说,这对我来说很奇怪!我推送时通常不会收到调用堆栈。无论哪种方式,我推送到GH的提交没有出现在网站上,我的团队成员也无法提取它,但我无法推动它,因为Git认为一切都是最新的。有没有办法让我同步我的origin / 3.25.08分支中的提交与github的分支,以便我可以推送这个提交?我不能做拉动更新分支,因为它说我的分支已经是最新的。

这也发生在主人身上。

1 个答案:

答案 0 :(得分:1)

这是GitHub.com上的一个临时问题,现在已经解决了。