2024年5月14日 15:43:39

git Sharing your configuration on GitHub

1 年 前
#19991 引用
首先从index暂存区 中删除

git rm -r --cached .

rm 'custom_components/xiaomi_miot/xiaomi_miot/water_heater.py'
rm 'media/DSD-OneIlove.wav'
rm 'media/DSD-雨花石-莫斯满.wav'
rm 'scenes.yaml'
0
3 个月 前
#28370 引用
20240120

git remote -v

t@raspberrypi:/home/homeassistant20221103/.homeassistant# git remote -v
origin  https://fr:[email protected]/free/Home-AssistantConfig20221103.git (fetch)
origin  https://fr:[email protected]/free/Home-AssistantConfig20221103.git (push)

0
3 个月 前
#28389 引用
change the URL of your Git origin remote.


git remote set-url <remote_name> <remote_url>


get <remote_name>
t@raspberrypi:/home/homeassistant20221103# git remote
origin

t@raspberrypi:/home/homeassistant20221103# git remote -v
origin                  https://github.com/mslycn/Home-AssistantConfig20221103.git (fetch)
origin                  https://github.com/mslycn/Home-AssistantConfig20221103.git (push)
<remote_name>     <remote_url>

git remote  set-url origin https://github.com/mslycn/Home-AssistantConfig20221103.git


t@raspberrypi:/home/homeassistant20221103# git remote -v
origin  https://github.com/mslycn/Home-AssistantConfig20221103.git (fetch)
origin  https://github.com/mslycn/Home-AssistantConfig20221103.git (push)



https://devconnected.com/how-to-change-git-remote-origin/
0
2 个月 前
#28556 引用
Git push says “Everything up-to-date” but the files are not appearing in github repository
0
2 个月 前
#28557 引用
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
0
2 个月 前
#29592 引用
S
git  回退到前面

git log


git reset --hard 1ca27610593359dad66fc82c148efc3a4ccf4ea8
0
2 个月 前
#29666 引用
cd /home/homeassistant20221103  run ok

0