I’ve just installed Debian10 with Gnome and got the same strange behavior with package “git-all”. I don’t know whats the conflict between that package and Gnome.
I replaced “git-all” with “git” package in installatio script and added extra option APT_AUTO_ACCEPT (by default ‘n’ - no, that means ask for user’s confirmation every time)