vs-code上でビルド出来たら、githubにuploadできる。publicにすると要領に制限がないってほんとかな。
VS-codeでTerminalを開く
git init
git remote add origin https://github.com/king33jp/mbedce_KL25Z_SX032QVGA008_TTimer.git
ここでエラーが出る。先に作っておくと、もうあると言っているようだ
git remote -v
origin https://github.com/mbed-ce/mbed-ce-hello-world.git (fetch)
origin https://github.com/mbed-ce/mbed-ce-hello-world.git (push)
hello-worldをコピーして作ったので前のリポジトリが残ってて、このままだと人のところにuploadしようとして失敗するみたい
git remote remove origin
git remote add origin https://github.com/king33jp/mbedce_KL25Z_SX032QVGA008_TTimer.git
git remote -v
origin https://github.com/king33jp/mbedce_KL25Z_SX032QVGA008_TTimer.git (fetch)
origin https://github.com/king33jp/mbedce_KL25Z_SX032QVGA008_TTimer.git (push)
originが変わった
git add .
git commit -m "Initial commit mbedce-kl25z-TTimer"
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
LFとCRが混在しているみたいなこと言ってるが無視前とメールを設定しろみたいに言われた
git config --global user.email "101400825+hogehoge@users.noreply.github.com"
git config --global user.name "hogehoge"
git commit -m "Initial commit mbedce-kl25z-TTimer"
uploadする
git branch -M main
git push -u origin main
見たら違ってるのでREADME.mdを変更する
git add README.md
git commit -m "Update README.md"
git push origin main
githubを見たら、mbedが勝手にコンパイルしてエラー表示出してる。これ、github上でworkfklowが設定されているらしい。ローカルのファイル群を見たら、.githubフォルダがあってworkflows/compile.ymlってファイルがあった。これを削除する
rm -r .\.github\workflows\
git add -A
git commit -m "Remove GitHub Actions workflows to stop automatic build"
git push origin main
git add -A とすると、削除されたファイルも同期してくれるらしい。
コメントを追加