I then clicked on the Windows Credentials tabs and found the entry for my current git account which happened to be Bit-bucket so I deleted this account.īut this didn't do the trick so the next step was to unset the credentials and I did this from the repository directory on my laptop that contains the GitHub project I am trying to push to the remote. I found the entry Credential Manager so I clicked on the START button > typed Credential Manager to and left-clicked on the credential manager yellow safe icon which launched the app. I first checked how git was handling my credentials with this command (run git bash with elevated commands or you get errors): git config -list ![]() Using latest version of git for Windows on Windows 10 Professional and I had a similar issue whereby I have two different GitHub accounts and also a Bitbucket account so things got a bit confusing for VS2017, git extensions and git bash. To open Credential Manager, type "credential manager" in the search box on the taskbar and select Credential Manager Control panel.Īnd then select Windows Credentials to edit (=remove or modify) the stored git credentials for a given URL. The manager helper offers the same GUI interface as winstore.Įxtract from the Windows 10 support page detailing the Windows credential manager: A similar helper called winstore is also available online and was used with GitExtensions as it offers a more GUI driven interface. The manager helper included in Git for Windows 2.x has replaced the earlier wincred helper that was added in Git for Windows 1.8.1.1. With this store, your details are secured by your Windows login and can persist over multiple sessions. This stores your credentials in the Windows credential store which has a Control Panel interface where you can delete or edit your stored credentials. On Windows you might be better off using the manager helper ( git config -global credential.helper manager). You may also need to do git config -system -unset credential.helper if this has been set in the system configuration file (for example, Git for Windows 2). Then reset this, and you would continue to have the cached credentials available for other repositories (if any). ![]() You could also disable use of the Git credential cache using git config -global -unset credential.helper. So killing your git-credential-cache-daemon process throws all these away and results in re-prompting you for your password if you continue to use this as the cache.helper option. ![]() Besides, you can list the remote repository in the sub-directory as "git remote -v".The Git credential cache runs a daemon process which caches your credentials in memory and hands them out on demand.If the above option doesn't work, you can list the content using "ls command" for the current directory, especially to check your exact number of spellings.Ensure that the working directory should have the project name as "cd git_project" and replace the project name from the downloaded repository.Make a copy of the repository from GitHub for your working directory.On the other hand, you can clone a github repository with SSH URLs where first you need to generate an SSH key pair on your windows workstation as well as need to assign a public key to your GitHub account.Then enter into your Powershell windows and write clone URL as: git clone repository_url.Then in the top right corner, click the option clone or download where a small drop-down box will appear having a URL for cloning over HTTPS.Initially you need to click the options repository on GitHub.git config –global user.e mail "email_address".git config –global user.n ame "github_username".Also, don't forget to add your own GitHub credentials for username and email address. You can configure your local GitHub installation with credentials by using the following commands. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |