I have some accounts for source control, such as: gitLab and Microsoft git on my computer.
How to use my gitLab account to: init, commit, push, pull but don't sign in again?
P.S.: I use macOS and command line.
Using key based authentication will allow you to avoid having to repeat login details for every service
The tutorial is available here, but the steps are:
Unfortunately I have not used Microsoft git before, so I am not able to say how you would add a key to its server.