On Ubuntu 24.04, the script is located at /etc/bash_complettion.d
source /etc/bash_complettion.d/git-prompt