[英]Clone Git repository in Linux using https protocol
I am trying to clone a repository in Linux using this command: 我正在尝试使用以下命令在Linux中克隆存储库:
git clone username@https://host:port/repository.git
But I keep getting error. 但是我总是出错。
Can someone please tell me the correct command to clone a repository on linux using https? 有人可以告诉我使用https在Linux上克隆存储库的正确命令吗?
Please specify what errors or issues you're facing. 请指定您遇到的错误或问题。
You can try to simply clone from the https and enter your username and password on prompt 您可以尝试从https克隆并在提示时输入您的用户名和密码
git clone https://host/repository.git
Then again I strongly recommend switching to ssh if you're planning to use git often on the local machine 再一次,如果您打算在本地计算机上经常使用git,我强烈建议切换到ssh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.