无法通过ssh和https登录gitlab

时间:2015-12-24 08:53:34

标签: git ssh

无法登录GIT。试过SSH和HTTPS。它给出了以下错误:

ssh: connect to host gitlab.com port 22: Connection timed out fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.

HTTPS提示输入密码,输入gitlab gui网站时会回复身份验证失败。

1 个答案:

答案 0 :(得分:-1)

请按照以下步骤操作:

 1. open your terminal
 2. navigate to your folder where you want to initialize Git
 3. git init
 4. git remote add origin <type remote https url here>
 5. git config --global user.email <your email>
 6. git config --global user.password <your password>

你最好从你添加的遥控器上拉或推。