3

菜鸡问一个 git 的使用问题

 2 years ago
source link: https://www.v2ex.com/t/827063
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

菜鸡问一个 git 的使用问题

  cxp · 20 小时 34 分钟前 · 1081 次点击

正如标题所说 git 的使用是一个菜鸡,当前需要执行的操作如下 仓库目录如下 git --a 目录 --a.c --b 目录 --b.c --c 目录 --c.c 此时我想创建一个目录单纯的拉取 c 目录下的文件进行操作,按照网上的操作为 mkdir new cd new git init git remote add origin ssh://[email protected]:29418/git.git git config core.sparsecheckout true echo "c" >> .git/info/sparse-checkout git pull origin master

最后的效果为 new --c --c.c

为何不能向 svn 一样拉取 svn:\127.0.0.1/git/c mkdir new new --c.c


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK