Skip to content

Commit d5136b6

Browse files
author
Donatien Garnier
authored
Merge pull request #1420 from Patater/tools-shallow-clone
tools: Add a note regarding shallow clones
2 parents 08bf7fa + 95fd64f commit d5136b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/tools/mbed_cli_2/use.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ mbed-tools import <example> <PATH>
6363
- [mbed-os-example-nfc](https://github.com/ARMmbed/mbed-os-example-nfc)
6464
- [mbed-os-example-sockets](https://github.com/ARMmbed/mbed-os-example-sockets)
6565
66+
Mbed CLI 2 will automatically use a shallow clone of git repositories whenever
67+
it can (with `import`, `deploy`, and other applicable commands) to speed up
68+
library and application management tasks. This will provide you with a local
69+
copy of a git repository that contains only a single branch. If you'd like to
70+
`git checkout` other versions manually, you'll need to convert your local
71+
repository into a complete copy using `git fetch --unshallow`.
72+
6673
### Use a specific Mbed program library
6774
6875
A Mbed program can use library dependencies at the revision specified in the ".lib" files.

0 commit comments

Comments
 (0)