git clone进入主目录

ric*_*ich 9 linux git home-directory

$ git clone ssh://host/repo.git ~/
destination directory '/home/username/' already exists.
Run Code Online (Sandbox Code Playgroud)

谁能告诉我如何使这项工作?我正在尝试快速复制常见的开发脚本和配置.

ric*_*ich 30

这似乎有效:

cd ~
git init
git remote add origin ssh://host/repo.git
git pull origin master
Run Code Online (Sandbox Code Playgroud)