小编ego*_*r83的帖子

Git fetch/pull已停止工作

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)

git github git-fetch

10
推荐指数
1
解决办法
2879
查看次数

在python中排序字典字典列表

我只想在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 sorting dictionary list

3
推荐指数
2
解决办法
739
查看次数

python异常AttributeError:"'NoneType'对象没有属性'var'"

我在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)

python exception

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

标签 统计

python ×2

dictionary ×1

exception ×1

git ×1

git-fetch ×1

github ×1

list ×1

sorting ×1