Git Autocompletion not Working on MacOS

Some time ago I moved on another MacBook and found that git autocompletion was not working there (Tahoe 26).