question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`mbed new` creates a Git repository

See original GitHub issue

Calling 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:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bridadancommented, Nov 9, 2018

Woah, apparently you can already do --scm none! I just tried it locally to confirm no git repository was created.

0reactions
SeppoTakalocommented, Nov 21, 2018

https://os.mbed.com/docs/v5.10/tools/working-with-mbed-cli.html

Actually, it seems that this is already documented there:

You can instruct Mbed CLI to use a specific source control management system or prevent source control management initialization, by using --scm [name|none] option.

Other scm names are not visible there, but none is quite self explanatory.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found