2024年11月21日星期四 下午9:28:15

Move git from ha core to Home Assistant with Docker on Raspberry Pi 3b+ raspberry pi os lite (64-bit)

10 个月 前
#28385 引用
Move to Home Assistant with Docker on Raspberry Pi 3b+ raspberry pi os lite (64-bit)
0
10 个月 前
#28386 引用
move git


move git
http://localhost:4999/boards/topic/20879/move-data-from-ha-core-to-home-assistant-with-docker-on-raspberry-pi-3b-raspberry-pi-os-lite-64-bit#28387


change url
http://localhost:4999/boards/topic/13385/git-sharing-your-configuration-on-github/page/3#28389
0
10 个月 前
#28387 引用
move git


copy
/.git
.gitignore


move /.git

old

/home/homeassistant20221103/.homeassistant/.git/*
564 MB (592,416,768 字节)
3,194 个文件,272 个文件夹

new
cd /home/homeassistant20221103/.homeassistant

move git data  to new ha
source:/home/homeassistant20221103/.homeassistant/
target:/home/homeassistant20221103/
/home/homeassistant20221103/.homeassistant/.git
.gitignore
.gitignore.swp

0
10 个月 前
#28388 引用

git pull origin maste



root@raspberrypi:/home/homeassistant20240104# git push -u origin main
To https://github.com/mslycn/Home-AssistantConfig20221103.git
! [rejected]        main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/mslycn/Home-AssistantConfig20221103.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

root@raspberrypi:/home/homeassistant20240104# git pull origin master



root@raspberrypi:/home/homeassistant20240104# git push -f -u origin main


root@raspberrypi:/home/homeassistant20240104# git push -f -u origin main
Enumerating objects: 51, done.
Counting objects: 100% (51/51), done.
Delta compression using up to 4 threads
Compressing objects: 100% (20/20), done.
Writing objects: 100% (26/26), 4.66 KiB | 477.00 KiB/s, done.
Total 26 (delta 9), reused 7 (delta 1), pack-reused 0
remote: Resolving deltas: 100% (9/9), completed with 9 local objects.
To https://github.com/mslycn/Home-AssistantConfig20221103.git
+ 7ead258...c097a95 main -> main (forced update)





check git

t@raspberrypi:/home/homeassistant20221103# git remote -v
origin  https://fr:[email protected]/freemsly/Home-AssistantConfig20221103.git (fetch)
origin  https://fr:[email protected]/freemsly/Home-AssistantConfig20221103.git (push)
0
10 个月 前
#28390 引用
/etc/hosts for Debian

127.0.0.1  localhost
::1    localhost ip6-localhost ip6-loopback
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters

127.0.1.1    raspberrypi
185.199.108.133 raw.githubusercontent.com
140.82.114.4 github.com
0
9 个月 前
#28404 引用
move .storage


devices run ok
0