git add remote,是ssh ://prefix required

标签 git ssh

将 git repo 添加为远程时,是否需要 ssh://前缀?我一直把它简单地看作:

git remote add user@server.com/path/here

是否隐含 ssh://前缀?

最佳答案

如果没有指定其他协议(protocol),Git 默认使用 ssh 协议(protocol)。



http://book.git-scm.com/3_getting_a_git_repository.html

关于git add remote,是ssh ://prefix required,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8584273/

相关文章:

尝试注释时出现 Android Studio GIT 错误

azure - SSH 到 Azure Kubernetes 虚拟机时出现错误

git - 如何正确初始化远程 git 仓库

python-3.x - 用于两步 ssh 隧道的 Jupyter notebook SSH 隧道

python - 通过 SSH 运行 python 进程,即使在关闭 SSH 连接并重新连接后也能监控进程

python - 我们能知道 Python 脚本是从 Windows 还是文本终端启动的吗?

ubuntu - 如何根据请求的域将 SSH 转发到 GitLab Docker 容器中

git - 使用带有 Git 和 NAnt 的 TeamCity 设置 CI

django - 使用 docker-compose 协作处理现有的 git repo Django 项目

git - 在 fugitive.vim 冲突差异中显示基础