RedBear BLE Nano v2 - fatal: bad revision 'HEAD'


#1

Hello, I have problem with my first uploading program to RedBear BLE nano v2. I just want to blink LED on port D0. If I compile the program I get:

[info] Compilation Ok

But if I try to upload I get this result and not working BLE:

[info] Compilation Ok
fatal: bad revision ‘HEAD’
[info] Searching for device 5f98e140c533039f0a3550111b1233afb7ab7bd6 with alias zs:redbear_nano2:5f98e140c533039f0a3550111b1233afb7ab7bd6
[info] Please reset the device!
[info] Searching for device 5f98e140c533039f0a3550111b1233afb7ab7bd6 again
[info] Probe sent
[error] No answer to probe

I removed the device and try to get registratian and virtualization again and I get this info:

[info] Starting device registration
[info] Burning bootloader…
Does F:\redbear.bin specify a file name
or directory name on the target
(F = file, D = directory)? f
C:\Users\pavel.janecek\zerynth2\tmp\tmpp4vi240z\tmp.bin -> F:\redbear.bin
1 File(s) copied
[info] Chip id retrieved: 0a3780df1a8d0cca
[info] Device RedBear Nano 2 registered with uid: 1iNY5BjXSN-VevKDuClp2g
Registration successful! Now you can virtualize your redbear_nano2
fatal: bad revision ‘HEAD’
fatal: bad revision ‘HEAD’
fatal: bad revision ‘HEAD’
[info] Starting Virtualization…
Does F:\redbear.bin specify a file name
or directory name on the target
(F = file, D = directory)? f
C:\Users\pavel.janecek\zerynth2\tmp\tmp5zsbl2qc\tmp.bin -> F:\redbear.bin
1 File(s) copied
[info] Virtualization Ok
Device Virtualized
fatal: bad revision ‘HEAD’
fatal: bad revision ‘HEAD’

If I manually check the F:\ directory, there is no such redbear.bin file.
Thanks for any ideas.