sudo git log
sudo git reset --mixed 592cc918b20be8d4af4bf4473c4cda9abc1df795
0
sudo git push -fu origin main
/data $ git remote -v
origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git (fetch)
origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git (push)
/data $ git remote -v
origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git (fetch)
origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git (push)
[code]/data $ git remote -v
origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git (fetch)
origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git (push)
sudo git remote set-url origin https://mslycn:[email protected]/mslycn/homeassistant20221103.git
$ cd /data
sudo git add .
udo git add .
fatal: detected dubious ownership in repository at '/data'
To add an exception for this directory, call:
git config --global --add safe.directory /data
sudo git commit -m "all commit"
sudo git push -u origin main
:/data# sudo git push -u origin main
branch 'main' set up to track 'origin/main'.
Everything up-to-date