Clone contents of a GitHub repository (without the folder itself)

前端 未结 6 1252
梦谈多话
梦谈多话 2020-12-04 04:57

I\'d like to git clone the contents of a repository I have on GitHub. When I git clone (git@github:me/name.git...) I get a folder called name

6条回答
  •  执笔经年
    2020-12-04 05:30

    to clone git repo into the current and empty folder (no git init) and if you do not use ssh:

    git clone https://github.com/accountName/repoName.git .
    

提交回复
热议问题