search

Home  >  Q&A  >  body text

What is the use of git clone parameter `depth=1`?

What are the parameters of git clonedepth=1 used for?

git clone --depth=1 git://someserver/somerepo
世界只因有你世界只因有你2805 days ago818

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-02 09:46:30

    depth is used to specify the cloning depth. If it is 1, it means only clone the latest commit.

    reply
    0
  • Cancelreply