Mittwoch, 19. Juli 2023

Laravel Forge: fatal: couldn't find remote ref refs/heads

On Laravel Forge I checked out a branch and deleted it from the git server by accident. Now I can not fetch and can not switch branch. Fun fact Forge tells me it switched while it did not:

forge@myserver:~/myserver.de$ git fetch 

fatal: couldn't find remote ref refs/heads/mybranch

fatal: the remote end hung up unexpectedly

This can be fixed be open and edit .git/config

In remote section replace the checked out branch mybranch with * two times:

[remote "origin"]

    url = git@bitbucket.org:me/mygit

--  fetch = +refs/heads/mybranch:refs/remotes/origin/mybranch 

++  fetch = +refs/heads/*:refs/remotes/origin/*

Save and quite.

Now you can run "git fetch" and "git checkout main".

I also deleted the old branch: git branch -d mybranch 



Like it? Share it! Flattr this

Donnerstag, 13. Juli 2023

Neato lidar laser not spinning

 

My Neato was starting and stopping but it did not move.

Turned out the lidar in the tower was not spinning. You can find a guide how to fix it on YouTube. In the video he uses an old motor from a CD Player he had. If you need to buy one you might be lost. I searched a long time. You can use a "solar" motor but they might break soon again.

I replaced it with RF-300FA-12350 DVD Player Motor from ebay (3,99€).
12V, Size: 24.4 x 12.4 mm with 19.4 mm shaft.

It is important to revers polarity. I cut of the old motor from the plug and soldered the red wire to the black one.

Also if you need to replace the side brush rubber, you can use a 25 x 2 mm seal. 3,50 € for 10 pieces.



Like it? Share it! Flattr this