If your git version is fine, the issue may be with the configuration of this git repository, for instance a syntax error in .git/config.
In order to check for that, open a shell on the repository machine and directory, and type git status
Download and install iftop package, run a M-x term, then type something as:
$ iftop -i eth0 -f 'dst host 192.168.1.3'
-i local interface
-f filter code, as in pcap-filter man page, for destination host in the example.
There will be 3 speed rates in inferior right part of the screen, meaning that for 2, 10 and 40 seconds respectively.
Another cause of this error:
On a first SSH connect to a server, new records are added to ~/.ssh/known_hosts.
But, if IP was specified in the connection instead of server's URL - only one line is added to ~/.ssh/known_hosts.
If subsequent connections in Tramp are made with server's URL, it hangs.
Solution: connect in terminal using URL(not IP) for a new ...
First of all, isn't a great idea opening remote files from your init
files. I'd use bookmarks or whatever else to open them quickly when
needed, also, I'd rather use any sync service like syncthing or a rsync cron task to keep them synced if, as you seem to suggest, the file also lies elsewhere.
If you absolutelly need to do it, I'd check if the server is ...
When you try to invoke a shell command whilst visiting a remote buffer (a directory in your case), tramp will try to run it on the remote machine. In this case it tries to ssh to your phone and run VLC but this doesn’t work.
You’ll need some other way to get the file into your local filesystem so that vlc may access it. You could just copy it but maybe you ...
Emacs 26.3 knows connection-local variables. Your approach is OK. However, you must set the :user property explicitly, like
'(:application tramp :protocol "scp" :user "myname" :machine "my-linux-host")