Hi. We have a Bitbucket repository with LFS. Our users work with Sourcetree, they use the https protocol. In order to access the repository they create App Passwords in their Bitbucket Settings and then set up their Sourcetree credentials with said App Passwords.
Everything seems to work OK except that every time we push an LFS file we get the following warning:
warning: current Git remote contains credentials
Files seem to be correctly uploaded, but we'd like to know why are we getting these warnings and how to solve them.
Thanks.
Community moderators have prevented the ability to post new answers.
Hi @quantum_pro
That warning comes from Git LFS, not from Sourcetree itself. It appears when the remote URL has the credentials baked into it, so it looks like: https://username:apppassword@bitbucket.org/workspace/repo.git.
Git LFS spots the password in the URL and warns, then still pushes fine.
I would clean the remote and let a credential helper store the secret instead. Are your users on Windows or macOS? The credential helper setup differs a bit.
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.