From 68657ba76474c9349ee2357aac528e4fc65aff7a Mon Sep 17 00:00:00 2001 From: Willem Oldemans Date: Fri, 23 Dec 2022 10:58:29 +0100 Subject: [PATCH] git migration --- libs.txt | 17 +++++++++++++++++ migrate.sh | 25 +++++++++++++++++++++++++ projects.txt | 19 +++++++++++++++++++ projects_leo | 4 ++++ 4 files changed, 65 insertions(+) create mode 100644 libs.txt create mode 100755 migrate.sh create mode 100644 projects.txt create mode 100644 projects_leo diff --git a/libs.txt b/libs.txt new file mode 100644 index 0000000..f37a3a2 --- /dev/null +++ b/libs.txt @@ -0,0 +1,17 @@ +libs/Accelstepper +libs/ADS_ADS1x15 +libs/BatterySense +libs/ESP8266Audio +libs/JCButton +libs/LittleFS_esp32 +libs/MC34933 +libs/OLEDDisplay +libs/PWMFrequency +libs/Radiohead +libs/rc-radio +libs/RF24 +libs/rfid.C95HF +libs/RFID.MFRC522 +libs/rfid.PN532 +libs/rfid.PN523_SPI +libs/rfid.NDEF \ No newline at end of file diff --git a/migrate.sh b/migrate.sh new file mode 100755 index 0000000..7efba03 --- /dev/null +++ b/migrate.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Usage: +# Create the repo in Github, and then give the repo name as the argument: +# ./migrate-git-repos.sh repo-name + +#(Optional) Mass migration + +#To do this in mass, I put each repo name on its own line in a file named repo-list, and looped through them with: + +# for repo in $(cat repo-list); do ./migrate-git-repos.sh $repo; done + +# Echo commands as they're run, and expand variables +set -o xtrace + +REPO="$1" + +git clone --mirror http://192.168.2.3:3000/$REPO.git old_repo +cd old_repo +git remote set-url origin http://debianVM.local:3000/$REPO.git +git push --mirror + +cd .. +rm -rf old_repo + diff --git a/projects.txt b/projects.txt new file mode 100644 index 0000000..36f0365 --- /dev/null +++ b/projects.txt @@ -0,0 +1,19 @@ +projects/lamatrix +projects/UDM_tmobile +projects/Smartknob +projects/VW_bus_firmware +projects/AQS-FW +projects/rc-micro-car +projects/rtl_433_esp +projects/reflowplate +projects/P1-wifi-esp12e +projects/mailboxcheckerMQTT +projects/lvgl_test_esp32 +projects/evDash +projects/esp-weather-station +projects/esp32Nixie +projects/esp32_camera +projects/digitalTubes +projects/clockclock +projects/rc-transmitter +projects/RX5808-pro-OSD \ No newline at end of file diff --git a/projects_leo b/projects_leo new file mode 100644 index 0000000..c9f9f74 --- /dev/null +++ b/projects_leo @@ -0,0 +1,4 @@ +projects_leo/muziekdoos +projects_leo/Leo-led-truck +projects_leo/headphones +projects_leo/ttgo_smartwatch_prox \ No newline at end of file