`mbed new` creates a Git repository
See original GitHub issueCalling mbed new .
creates an empty Git repository in the folder where I call it.
This is problematic if I’m calling it within Git repository already.
~/src/mbed-os-examples-docs_only$ git remote -v
origin git@github.com:ARMmbed/mbed-os-examples-docs_only.git (fetch)
origin git@github.com:ARMmbed/mbed-os-examples-docs_only.git (push)
~/src/mbed-os-examples-docs_only$ mkdir My_example
~/src/mbed-os-examples-docs_only$ cd My_example/
~/src/mbed-os-examples-docs_only/My_example$ mbed new .
[mbed] Creating new program "My_example" (git)
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os" at branch/tag "latest"
[mbed] Updating reference "mbed-os" -> "https://github.com/ARMmbed/mbed-os/#bf6f2c3c6434a6de9eb9511feffa5948b3d1f20f"
[mbed] Auto-installing missing Python modules...
~/src/mbed-os-examples-docs_only/My_example$ git remote -v
~/src/mbed-os-examples-docs_only/My_example$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: mbed-os.lib
Untracked files:
(use "git add <file>..." to include in what will be committed)
.mbed
mbed_settings.py
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Working with Git - Source control | Mbed Studio Documentation
Working with Git. Mbed Studio supports the most common Git actions for your programs, including branching, stashing and synching with the remote repository....
Read more >Clone an Mbed project - Arm Keil Studio Cloud User Guide
You can clone existing Mbed projects from os.mbed.com/code (as a URL) or a Git hosting service (such as GitHub). Before you begin. For ......
Read more >Solved: Cannot do "mbed new ." again after an error
1. You must re-run "mbed new ." with every new project, instead of just putting it in one place. If you need to...
Read more >Using the Mbed CLI - The Grbd Blog
Under the hood I think "mbed new" changes the directory into a git repository with "git init", then uses "mbed add" to add...
Read more >Artemis Development on Arm® Mbed™ OS (Beta)
Note: For users who need a little more direction, install the GitHub desktop application and register a GitHub account. Once an account has...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Woah, apparently you can already do
--scm none
! I just tried it locally to confirm no git repository was created.https://os.mbed.com/docs/v5.10/tools/working-with-mbed-cli.html
Actually, it seems that this is already documented there:
Other scm names are not visible there, but
none
is quite self explanatory.