关于git拉取
PHP中文网
PHP中文网 2017-05-02 09:49:34
0
4
656

比如说有两个文件夹a和b,他们都在同一目录下,当我在a文件夹下拉取远端代码时,也会把b文件夹的远端代码都给拉取下来,为什么会这样子呢

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(4)
Peter_Zhu

According to your situation, folder a and folder b should be in the same warehouse. When pulling the code, the latest one in the warehouse will be taken, instead of only partial directories;

小葫芦

git is the warehouse manager. If your git repository is only in the a folder, then when you pull the code, you can only get the code in the a folder.

Judging from the problem you described, your warehouse should be in a folder other than a and b, so of course when you pull the code, b will be pulled down.

If you really don’t want to pull b’s code, just add b to .gitignore and that’s it

给我你的怀抱

I remember reading the introduction in the git quick start, you can go find it yourself

仅有的幸福

Pull seems to be pulling the entire git project directory, rather than pulling a certain directory within it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template