Change GIT user name and passwd against CIFS

Hi, wanted to ask the following.
I have an Ubuntu 22.04 with Gitlab-ce-16.2.4 installation. I have a CIFS for which i want to change git username/password in order to be authenticated, according to CIFS defined user.
I guess for the user it will be: git config --global user.name “Bob” and for the password: git config credential.helper store.

If i commit the change (globally) are there going to be any side effects according to your experience? In new future projects i mean…

Thank you.