git add --all 为啥不能添加空文件夹,这样设计的初衷是? 好多项目还得弄个假文件在空文件夹里面占位 这个算设计失误吧,见 https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F Currently the design of the git index (staging area) only permits files to be listed, and nobody competent
1:添加本地秘钥到代码仓库中 open ~/ .ssh 以github为例: mac 命令行输入open ~/ .ssh,打开id_rsa.pub文件中的内容,复制到github->settings,选择SSH and GPG keys,new SSH key,新建,任意输入一个名称,把复制内容加在下面保存即可. 2:从github上的仓库中克隆代码 git clone git@github.com:xu-jinkai/vue-music.git 等待下载即可,过程中可能会遇到输入密码的问题 E