git-all is a dangerous package. I suffered twice due to installing this command. It removes all core packages thereby gui is lost. This bug came because of transition from initd to systemd 2 generations back. You can check related logs posted by others here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934646.
P.S: git can be installed by a simple command
apt install git