How do you setup a GitLab repo on Microsoft Visual Code?
There are two main scenarios –
You have the code on your workstation and you want to push into a clean / new repository 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 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.
Posted in Code |
Tagged code, git, gitlab, pull, push, repo, repository, studio, token, user, visual, VSC |
Scooter beeping? – check out these codes for a hint at what might be wrong…
Error code Description Malfunction part 10 Dashboard and control board communication abnormal，check connected cable Dashboard、control board 11 Motor A phase current abnormal ，check control board control board 12 Motor B phase current abnormal ，check control board control board 13 Motor C phase current abnormal ，check control board control board 14 Throttle hall abnormal，check electric throttle、dashboard and connected cable dashboard 、electric throttle 15 Brake hall abnormal，check electric barke、dashboard and connected cable dashboard、electric brake 16 Battery change MOS abnormal，check control board control board 17 External battery change MOS abnormal，check control board control board 18 motor hall abnormal，check motor、control board、connected cable. control board、motor 19 Battery voltage abnormal，check battery、control board、connected cable. control board、battery 20 External battery voltage abnormal，check battery、control board、connected cable. control board、battery 21 Battery communication failed，check battery、control board、connected cable battery 22 Battery code failed，change battery battery 23 Battery default serial number，change battery battery 24 System voltage test abnormal，check control board control board、battery、external battery 25 Undefined 26 Flash saving error，check control board control board 27 Control code error，change control board control board 28 Motor driver mos up-bridge short circuit control board 29 Motor driver mos down-bridge short circuit control board 30 Undefined 31 Program skip error，check control board control board 32 Undefined 33 Undefined 34 Undefined 35 Unit has default serial number，change control board control board 36 Undefined 37 Undefined 38 Undefined 39 Battery temperature sensor abnormal，change battery battery 40 Control board temperature abnormal，check control board control board、battery 41 Exteral battery temperature abnormal，change external battery external battery 42 Exteral battery communication error，check external battery、control board、connected cabel control board、external battery 43 Exteral battery code error，change external battery external battery 44 External has default serial number，change external battery external battery