If the repository is cloned through https, a prompt will pop up to ask for a password when SourceTree pushes and other operations.
Set in the warehouse:
remote warehouse - select the warehouse - click edit - modify the url path, the
path format, take the code cloud as an example:
https://username:[email protected]/***.git