MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Purpose of Depth=1



  • I’ve loaded a few 3rd party modules and was just curious as to why one of them has --Depth=1 git the initial git clone line. I’ve done plenty of that process with sensors for Pi computers outside of the MM arena and have never seen that before. What is it doing and why is it used.


  • Project Sponsor

    @ankonaskiff17 The

    --depth=1
    

    means the following. Git shallow clone lets you pull down just the latest commits, not the entire repo history. So if your project has years of history, or history from thousands of commits, you can select a particular depth to pull.


Log in to reply