Maison  >  Questions et réponses  >  le corps du texte

我研究了一周怎么都没办法用Git Bash上传到远程库?

ssh:connect to host github.com port 22:Bad file number
fatel;cound not read from remote repository.
please make sure you have the correct access rights
and the repository exists ??
我研究了一周怎么都没办法用Git Bash上传到远程库?

PHP中文网PHP中文网2726 Il y a quelques jours684

répondre à tous(3)je répondrai

  • 阿神

    阿神2017-05-02 09:20:44

    En prenant github comme exemple, j'ai trouvé cet article :
    https://help.github.com/articles/error-bad-file-number/
    Testez d'abord à l'aide de la commande suivante : ssh -vT git@github.comDécouvrez plus de messages d'erreur.

    Ensuite, combinez le message d'erreur que vous voyez maintenant :

    ssh:connect to host github.com port 22:Bad file number
    fatel;cound not read from remote repository.
    please make sure you have the correct access rights
    and the repository exists 
    

    C'est peut-être un problème d'autorisations,
    1. Essayez de télécharger la clé publique sur github
    2. Le dépôt distant ne dispose pas de suffisamment d'autorisations ?

    répondre
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:20:44

    Problèmes de configuration de GIT :
    Première étape :
    Paramètres

    git config --global user.name "你在githbub上注册的名"
    
    git config --global user.email "你在githbub上注册的电邮"
    

    Étape 2 : Autorisation, en supposant que vous utilisez SSH pour vous connecter

    La troisième étape Créer la bibliothèque, cela se fait sur GITHUB, pas besoin d'entrer dans les détails

    Quand tu es local

    git commit
    

    Alors, juste

    git push 
    

    Vous voyez l'invite 'git remote add <name> <url>'
    Alors, vous

    git push
    

    Trop de choses à dire, si vous regardez l'aide en anglais, tout y est
    configuration git

    répondre
    0
  • PHP中文网

    PHP中文网2017-05-02 09:20:44

    Vous devez ajouter un fichier de configuration dans le répertoire .ssh pour définir le port 443

    répondre
    0
  • Annulerrépondre