{"action":"closed","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/491","repository_url":"https://api.github.com/repos/ARMmbed/mbed-cli","labels_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/491/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/491/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-cli/issues/491/events","html_url":"https://github.com/ARMmbed/mbed-cli/issues/491","id":230896130,"number":491,"title":"How to import from a specific branch of a gitlab repository","user":{"login":"binary-nerd","id":5645667,"avatar_url":"https://avatars2.githubusercontent.com/u/5645667?v=3","gravatar_id":"","url":"https://api.github.com/users/binary-nerd","html_url":"https://github.com/binary-nerd","followers_url":"https://api.github.com/users/binary-nerd/followers","following_url":"https://api.github.com/users/binary-nerd/following{/other_user}","gists_url":"https://api.github.com/users/binary-nerd/gists{/gist_id}","starred_url":"https://api.github.com/users/binary-nerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binary-nerd/subscriptions","organizations_url":"https://api.github.com/users/binary-nerd/orgs","repos_url":"https://api.github.com/users/binary-nerd/repos","events_url":"https://api.github.com/users/binary-nerd/events{/privacy}","received_events_url":"https://api.github.com/users/binary-nerd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-24T01:38:44Z","updated_at":"2017-05-25T06:40:15Z","closed_at":"2017-05-25T06:40:15Z","body":"I have a question related to the workflow using mbed-cli\r\n\r\nHere is what I did.\r\n1. I went into my embedded project which was for arduino.\r\n2. I creatd a new branch called mbed.\r\n3. I cleaned up everything that is existing\r\n4. `mbed new --scm none --program .`  -> This downloads everything including mbed-os\r\n5. I created `main.cpp` and wrote a program\r\n6. I pushed the new branch to my repository. Interestingly the mbed-os did not get uploaded.\r\n\r\nSo, I want to use this project on another machine.\r\nWhat are the steps to use it back?\r\n\r\nI thought i can `mbed import` it using the github URL and it installs mbed-os along with my code. But, I dont see any option to specify a branch name while importing from a gitlab link.\r\n\r\n### Questions:\r\n1. What is the recommended workflow with mbed-cli?\r\n2. How to download a project from a specific branch of a gitlab repository\r\n\r\n"}}
{"actor":{"display_login":"binary-nerd"}}