Git fetch和pull都在昨天停止工作在服务器上(AWS实例).
$ git fetch
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
该实例上有两个存储库克隆,两者都给出了相同的错误.git仍然适用于本地PC.
git remote -v
在本地PC和服务器上提供相同的结果; ssh git@github.com
按预期工作("嗨(名字)!您已成功通过身份验证,但GitHub不提供shell访问权限.")
行为有一个区别:git pull origin st
+ [Tab]用于扩展到分支名称; 现在它扩展为当前目录中文件的名称(文件名与分支名称不同).
更新:我尝试重新创建远程:SSH版本仍然失败,但HTTP工作.
根据git邮件列表中的这个讨论,这实际上是GitHub网站上的一个问题.
UPDATE
输出 GIT_TRACE=1
############# Local results #############
$ GIT_TRACE=1 git fetch
setup: git_dir: .git
setup: worktree: c:/Projects/(local_path)
setup: cwd: c:/Projects/(local_path)
setup: prefix: (null)
trace: built-in: git 'fetch'
trace: run_command: 'ssh' 'git@github.com' 'git-upload-pack '\''(username)/(reponame).git'\'''
Enter passphrase for key '(keyname)':
trace: run_command: 'rev-list' '--quiet' '--objects' …
Run Code Online (Sandbox Code Playgroud) 我只想在python中按first_name排序这个列表
list = [ { "profile" : { "first_name" : "a", "last_name" : "b" } } ,
{ "profile" : { "first_name" : "c", "last_name" : "d" } } ,
{ "profile" : { "first_name" : "e", "last_name" : "f" } } ]
Run Code Online (Sandbox Code Playgroud) 我在Python中获得此异常,
Exception AttributeError: "'NoneType' object has no attribute 'population'" in del of <main.Robot instance at 0x104eb7098>> ignored
Run Code Online (Sandbox Code Playgroud)
这是我的代码,
class Robot:
population = 0 #class variable, number of robots
def __init__(self, name):
self.name = name
print ('(initializing {0})'.format(self.name))
Robot.population += 1
def __del__(self):
print('{0} is being destroyed!'.format(self.name))
Robot.population -= 1
if Robot.population == 0:
print ('{0} was the last one.'.format(self.name))
else:
print('there are still {0:d} robots working.'.format(Robot.population))
def sayHi(self):
print('hole mi mestre me llama {0}'.format(self.name))
def howMany():
print('hay {0:d} robots'.format(Robot.population))
howMany …
Run Code Online (Sandbox Code Playgroud)