1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
依循指引操作troubleshooting,找不到連線有問題。

pande@raspberrypi:~ $ sudo nftables status
sudo: nftables:找不到指令
pande@raspberrypi:~ $ sudo iptables -L -v
sudo: iptables:找不到指令
pande@raspberrypi:~ $ sudo journalctl -u ssh.service -e
-- Boot 7806322520bd42a8923f9ed58998c41d --
 7月 14 14:09:47 raspberrypi systemd[1]: Starting OpenBSD Secure Shell server...
(略)
 7月 19 11:53:21 raspberrypi systemd[1]: Stopped OpenBSD Secure Shell server.
-- Boot 3edf39aa60e94b1d89a8f1e4eb2d2ed9 --
 7月 19 11:53:28 raspberrypi systemd[1]: Starting OpenBSD Secure Shell server...
 7月 19 11:53:29 raspberrypi sshd[627]: Server listening on 0.0.0.0 port 22.
 7月 19 11:53:29 raspberrypi sshd[627]: Server listening on :: port 22.
 7月 19 11:53:29 raspberrypi systemd[1]: Started OpenBSD Secure Shell server.


我放下你建議之「先解決連線問題」,改為「直接處理git合併策略」。
◎ 樹莓派4B,確認狀態。
pande@raspberrypi:~ $ cd /home/pande/Desktop/Website
pande@raspberrypi:~/Desktop/Website $ git status
位於分支 master
沒有要提交的檔案,工作區為乾淨狀態

◎ 樹莓派400,有新變更。先做處理,然後提交:
pande@raspberrypi:~/Desktop/Website $ git commit -m "Include MQTT novelty"
[master f3f38a5] Include MQTT novelty
 20 files changed, 2678 insertions(+), 4 deletions(-)
 create mode 100644 WebLock/MQTT/Door Lock MQTT Test-20250619.html
 create mode 100644 WebLock/MQTT/MQTT_Subscriber.py
 create mode 100644 WebLock/MQTT/electronic_lock/__init__.py
 create mode 100644 WebLock/MQTT/electronic_lock/__pycache__/__init__.cpython-39.pyc
 create mode 100644 WebLock/MQTT/electronic_lock/__pycache__/electronic_lock_ble.cpython-39.pyc
 create mode 100644 WebLock/MQTT/electronic_lock/electronic_lock_ble.py
 create mode 100644 WebLock/WebPage/app.py
 create mode 100644 WebLock/WebPage/electronic_lock/__init__.py
 create mode 100644 WebLock/WebPage/electronic_lock/__pycache__/__init__.cpython-39.pyc
 create mode 100644 WebLock/WebPage/electronic_lock/__pycache__/electronic_lock_ble.cpython-39.pyc
 create mode 100644 WebLock/WebPage/electronic_lock/electronic_lock_ble.py
 rename WebLock/index.html => "WebLock/WebPage/templates/index-Promise\350\252\236\346\263\225.html" (100%)
 create mode 100644 WebLock/WebPage/templates/index.html
 create mode 100644 "WebLock/WebPage/templates/index_20250523_\345\276\210\344\271\205\344\273\245\345\211\215\347\232\204\345\210\235\345\247\213\350\251\246\347\216\251.html"
 create mode 100644 "WebLock/WebPage/templates/index_async\345\207\275\346\225\270.html"
 rename serviceVer/{webserver.service => MQTTsubscriber.service} (69%)
 create mode 100644 serviceVer/myPlurkStatic.service
 create mode 100644 serviceVer/projectWebLock.service
 create mode 120000 serviceVer/system

◎ 樹莓派400,再執行合併:
pande@raspberrypi:~/Desktop/Website $ git status
位於分支 master
沒有要提交的檔案,工作區為乾淨狀態
pande@raspberrypi:~/Desktop/Website $ git pull ssh://[email protected]/home/pande/Desktop/Website master
The authenticity of host '192.168.50.227 (192.168.50.227)' can't be established.
ECDSA key fingerprint is SHA256:kIXnEPIgdof0CCgXPLKsTpJqlnKN9kLqFPBlgxKWThs.
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type 'yes', 'no' or the fingerprint: yes
Warning: Permanently added '192.168.50.227' (ECDSA) to the list of known hosts.
[email protected]'s password: 
remote: 枚舉物件: 33, 完成.
remote: 物件計數中: 100% (33/33), 完成.
remote: 壓縮物件中: 100% (25/25), 完成.
remote: 總共 28 (差異 5),復用 0 (差異 0),重用包 0
展開物件中: 100% (28/28), 29.46 KiB | 3.27 MiB/s, 完成.
來自 ssh://192.168.50.227/home/pande/Desktop/Website
 * branch            master     -> FETCH_HEAD
衝突(add/add):合併衝突於 serviceVer/projectWebLock.service
自動合併 serviceVer/projectWebLock.service
衝突(add/add):合併衝突於 serviceVer/myPlurkStatic.service
自動合併 serviceVer/myPlurkStatic.service
自動合併 serviceVer/MQTTsubscriber.service
自動合併 script/start_webserver.sh
error: 不能應用 f3f38a5... Include MQTT novelty
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
不能應用 f3f38a5... Include MQTT novelty

◎ 請問這樣合併完成了嗎?