configuring user and password with git bash

I am using git bash on Windows 7. We are using github as our repository origin.

Every time I push or pull I have to provide user and password credentials. I know that my SSH keys are set up correctly, otherwise I would not be able to access the repository. (That is, once I enter my credentials the push/pull works correctly.)

  • npm install from Jenkins fails installing module hosted on bitbucket
  • Authentication problems, multiple users, git, github, terminal, osx
  • IntelliJ won't save SVN authentication information
  • Git Credential Management - allow to change passwords (Windows, TortoiseGit)
  • Jenkins Subversion Error - E200015: No credential to try. Authentication failed
  • Where's the encryption key stored in Jenkins?
  • I have entered

    git config --global myusername
    git config --global myemail
    git config --global github.user myusername
    git config --global github.token mytoken

    But nonetheless I am being asked for credentials each and every time I push/pull.

  • Apply a command to all commits
  • git-svn fetch/rebase failing after trying to repair a corrupted file
  • Mercurial equivilent to git's HEAD~1
  • Exclude specific subdirectory with gitignore
  • Windows Git - set up SSH key
  • How do I apply autostash after an aborted rebase?
  • 2 Solutions collect form web for “configuring user and password with git bash”

    Make sure you are using ssh url for the github repo rather than the https url. It will ask for username and password when you are using https and not SSH. You can check the file .git/config or run git config -e or git remote show origin to verify the url and change it if needed.

    Try ssh-agent for installing the SSH key for use with git. It should auto login after use of a passphrase.

    Git Baby is a git and github fan, let's start git clone.