Visual Studio Code – Adding GitLab repository

How do you setup a GitLab repo on Microsoft Visual Code?

There are two main scenarios –

  1. You have the code on your workstation and you want to push into a clean / new repository
  2. You want to pull code from an existing gitlab repository onto your workstation

First go to your local folder on your workstation (either empty or full of code)

git init 
git add .
git remote add origin https://<username>:<usertoken>@gitlaburl.com/project/repo.git

The above commands tell git to run initial setup, add current folder as content then add associated remote gitlab repository.

Note the format to use while using a user token. The user token is issued by GitLab, your username will also be there. You will need to ensure that your token has both read and write access to the repository.

Mi / Xiaomi Scooter Error codes

Scooter beeping? – check out these codes for a hint at what might be wrong…

Error codeDescriptionMalfunction part
10Dashboard and control board communication abnormal,check connected cableDashboard、control board
11Motor A phase current abnormal ,check control boardcontrol board
12Motor B phase current abnormal ,check control boardcontrol board
13Motor C phase current abnormal ,check control boardcontrol board
14Throttle hall abnormal,check electric throttle、dashboard and connected cabledashboard 、electric throttle
15Brake hall abnormal,check electric barke、dashboard and connected cabledashboard、electric brake
16Battery change MOS abnormal,check control boardcontrol board
17External battery change MOS abnormal,check control boardcontrol board
18motor hall abnormal,check motor、control board、connected cable.control board、motor
19Battery voltage abnormal,check battery、control board、connected cable.control board、battery
20External battery voltage abnormal,check battery、control board、connected cable.control board、battery
21Battery communication failed,check battery、control board、connected cablebattery
22Battery code failed,change batterybattery
23Battery default serial number,change batterybattery
24System voltage test abnormal,check control boardcontrol board、battery、external battery
25Undefined 
26Flash saving error,check control boardcontrol board
27Control code error,change control boardcontrol board
28Motor driver mos up-bridge short circuitcontrol board
29Motor driver mos down-bridge short circuitcontrol board
30Undefined 
31Program skip error,check control boardcontrol board
32Undefined 
33Undefined 
34Undefined 
35Unit has default serial number,change control boardcontrol board
36Undefined 
37Undefined 
38Undefined 
39Battery temperature sensor abnormal,change batterybattery
40Control board temperature abnormal,check control boardcontrol board、battery
41Exteral battery temperature abnormal,change external batteryexternal battery
42Exteral battery communication error,check external battery、control board、connected cabelcontrol board、external battery
43Exteral battery code error,change external batteryexternal battery
44External has default serial number,change external batteryexternal battery