I recently ran into a problem where no matter what I did, BAS just didn’t want to save my git credentials. I found a lot of articles that proposed changing the built in git configuration to “store”, or change its cache timeout to be longer. But most of these settings only worked temporarily or didn’t produce any result at all.
After digging through the git config I found the following solution:
basctl --command sapbas.gitAuthenticationGetBuiltinHelperName
This brings up a menu at the top of the window, allowing you to select between the two available options. Use this to select the option you prefer.
nano ~/.gitconfig
change the line with
helper = /home/user/.bas-git/bas-git-helper.sh
to
helper = /home/user/.bas-git/bas-git-helper-init.sh
and make sure to save your changes!
git config --global user.email "[email protected]"
Git should now work as intended. The changed settings should also be persistent across Space restarts.