I had the same problem as you, then I tried adding this code
#! /bin/bash
eval `ssh-agent -s`
ssh-add ~/.ssh/*_rsa
into file .bashrc
in my home directory. And it works!
Related Contents:
- After $git push -u origin main command, Git bash is not requesting any authentication literally does nothing
- Could not open a connection to your authentication agent
- How to remove a directory from git repository?
- How to iterate through all git branches using bash script
- Git Init in home directory – now unable to commit changes
- git: ‘credential-cache’ is not a git command
- Start ssh-agent on login [closed]
- Git keeps asking me for my ssh key passphrase
- Various ways to remove local Git changes
- GitHub – fatal: could not read Username for ‘https://github.com’: No such file or directory
- Using GIT_SSH_COMMAND in Git for Windows
- How do I change the default location for Git Bash on Windows?
- Unable to Connect to GitHub.com For Cloning
- Cannot push to Git repository on Bitbucket
- Git Bash (mintty) is extremely slow on Windows 10 OS
- Username and password in command for git push
- Using git with ssh-agent on Windows
- Change the location of the ~ directory in a Windows install of Git Bash
- Set an environment variable in git bash
- Multiple GitHub accounts on the same computer?
- Viewing unpushed Git commits
- git error: failed to push some refs to remote
- How to backup a local Git repository?
- Check if pull needed in Git
- How can I get the latest tag name in current branch in Git?
- In Git, how can I recover a staged file that was reverted prior to committing?
- master branch and ‘origin/master’ have diverged, how to ‘undiverge’ branches’?
- Set up git to pull and push all branches
- How to clone git repository with specific revision/changeset?
- Git SSH authentication
- How do I show the changes which have been staged?
- Undo a particular commit in Git that’s been pushed to remote repos
- Git: ignore some files during a merge (keep some files restricted to one branch)
- git ignore vs. exclude vs. assume-unchanged
- How can I completely remove a file from a git repository?
- How to search through all Git and Mercurial commits in the repository for a certain string?
- How can I change the default comments in the git commit message?
- Windows git “warning: LF will be replaced by CRLF”, is that warning tail backward?
- Can I use git diff on untracked files?
- Can you issue pull requests from the command line on GitHub?
- How do I squash two non-consecutive commits?
- Git: Is there a way to figure out where a commit was cherry-pick’ed from?
- There isn’t anything to compare. Nothing to compare, branches are entirely different commit histories
- Git mergetool with Meld on Windows
- How do I prevent an automerge using Git?
- git: symlink/reference to a file in an external repository
- How to get changes from another branch
- How to make Git properly display UTF-8 encoded pathnames in the console window?
- Ignore new commits for git submodule
- Git cherry-pick syntax and merge branches