简体   繁体   中英

I cloned a git repository. How do I pull from it into a working directory?

So I cloned an existing (and working) Git repository, for the purpose of experimenting with the clone (instead of pushing stuff into the live production repo).

在此输入图像描述

It went without incident but now I would like to create a Working Directory to which I can pull from (and from which I can push to) the new "remote" repository I just created (cloned).

How do I do that?

I tried pulling to an empty directory with the help of Git Extensions , but all I get in the context menu are operations that do not seem like what I need:

在此输入图像描述

Obviously, I am missing a key Git concept here. What am I missing?

You have selected the --bare option ("Public repository, no working dir"). This option does not create a working directory. Instead, choose the "Personal repository" option, which creates a working directory.

在克隆时,您应该选择存储库类型的“个人存储库”选项来创建工作目录。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM