Yotta adding new target

I have a target cloned from github.
The target does not appear when listing with “yotta target”

How to add a target via Yotta ?

To use a development version of a target cloned from github, or created yourself, you’ll need to use the link-target subcommand to link it into your build: here are a couple of useful guides from the yotta docs:

http://yottadocs.mbed.com/tutorial/targets.html#testing-targets
http://yottadocs.mbed.com/tutorial/yotta_link.html#link-target

I’ve tried that and the target is still not listed.

Once you’ve linked it, you can use yotta target <your target's name> to select it.

If you type yotta target it should then show up with a green arrow like this:

Which illustrates it has been successfully linked in to your application, and will be used when you yotta build.