简体   繁体   English

git push停止在Amazon Ec2实例上工作

[英]git push stopped working on Amazon Ec2 instance

Have a problem with pushing to github repo from my server on EC2. 在EC2上从我的服务器推送到github存储库时遇到问题。

Steps I am taking: 我正在采取的步骤:

  1. git add somefile successful git add somefile 成功 git add somefile

  2. git commit -m "sample commit" successful git commit -m "sample commit" 成功

  3. git push origin master blank git push origin master 空白

On the last step, I don't get usual logs of file being pushed, but no error messages either. 在最后一步,我没有得到通常的文件推送日志,但是也没有错误消息。 It just goes 就这样

[ec2-user@ip****** app]$ git push origin master
[ec2-user@ip*******app]$ 

and no files are being pushed to my repo on github. 并且没有文件被推送到我在github上的仓库中。 Where can I get some logs of what's happening there? 在哪里可以获取那里发生的事情的日志? I couldn't find any push related logs in .git/logs 我在.git / logs中找不到任何与推送相关的日志

NOTE: It was working perfectly for me last September, then I switched the other projects, and this repo haven't been touched until now. 注意:去年9月,它对我来说运行得很好,然后我切换了其他项目,直到现在为止都没有涉及到这个仓库。 Haven't changed anything in my git, or ec2 configuration in meantime. 同时,我的git或ec2配置中没有任何更改。

As it stands the question is not the clearest, but I am willing to provide any necessary additional info 就目前而言,这个问题不是最明确的,但我愿意提供任何必要的其他信息

EDIT: to Sebastian 编辑:塞巴斯蒂安

[ec2-user@ip*** app]$ git push -v origin master
Pushing to https://github.com/*myusername*/*repo*.git
[ec2-user@ip******app]$ 

It started working again after running regular "sudo yum update" 运行常规的“ sudo yum更新”后,它又开始工作

Updated:
  curl.x86_64 0:7.36.0-2.45.amzn1                                               
  ec2-net-utils.noarch 0:0.4-1.21.amzn1                                         
  ec2-utils.noarch 0:0.4-1.21.amzn1                                             
  java-1.6.0-openjdk.x86_64 1:1.6.0.0-67.1.13.3.64.amzn1                        
  libcurl.x86_64 0:7.36.0-2.45.amzn1                                            
  libpwquality.x86_64 0:1.2.3-1.5.amzn1                                         
  nspr.x86_64 0:4.10.4-1.21.amzn1                                               
  nss.x86_64 0:3.16.0-1.35.amzn1                                                
  nss-softokn.x86_64 0:3.16.0-1.19.amzn1                                        
  nss-softokn-freebl.i686 0:3.16.0-1.19.amzn1                                   
  nss-softokn-freebl.x86_64 0:3.16.0-1.19.amzn1                                 
  nss-sysinit.x86_64 0:3.16.0-1.35.amzn1                                        
  nss-tools.x86_64 0:3.16.0-1.35.amzn1                                          
  nss-util.x86_64 0:3.16.0-1.22.amzn1 

These are the files updated. 这些是已更新的文件。

Apologies for bringing zero knowledge to the community 向社区带来零知识的歉意

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM