While working with Git clone I was receiving fatal: Authentication failed and Missing or invalid credentials error. This happens due to missing password or it is not mentioned.
[vjanvi@ansiblwcentos variablepass]$ git clone http://[email protected]/Bonobo.Git.Server/ansibleawx.git Cloning into 'ansibleawx'... fatal: Authentication failed for 'http://192.168.34.44/Bonobo.Git.Server/ansibleawx.git/' [vjanvi@ansiblwcentos variablepass]$ [vjanvi@ansiblwcentos variablepass]$ git clone http://192.168.34.44/Bonobo.Git.Server/ansibleawx.git Cloning into 'ansibleawx'... Missing or invalid credentials. Error: connect ECONNREFUSED /run/user/1000/vscode-git-a7bd9556be.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '/run/user/1000/vscode-git-a7bd9556be.sock' } Missing or invalid credentials. Error: connect ECONNREFUSED /run/user/1000/vscode-git-a7bd9556be.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '/run/user/1000/vscode-git-a7bd9556be.sock' } fatal: Authentication failed for 'http://192.168.34.44/Bonobo.Git.Server/ansibleawx.git/' [vjanvi@ansiblwcentos variablepass]$
To resolved this issue you will need to mention username and password in the git url alike below,
git clone https://<github_username>:<github_password>@githuburl/folder/repo.git
Incase you are facing issue when pushing git repo remotely you can set it using command
git remote set-url origin https://<github_username>:<github_password>@githuburl/folder/repo.git
Useful Articles
INSTALLING .NET 3.5 FRAMEWORKS ON WINDOWS SERVER 2012 R2
CONVERTING FROM SERVER 2012 CORE INSTALL TO FULL GUI
Solved Visual studio Code make sure you configure your user.name and user.email in git
Logging and Working on BitBucket using Git SSH url
Running Your First PowerShell Scripts With Jenkins and Git
PowerShell How to find file and folders in Azure Storage Account Blobs and Containers