![]() Start a local Administrator PowerShell and run the following commands: # Make sure you're running as an Administrator Set-Service ssh-agent -StartupType Automatic Start-Service ssh-agent Get-Service ssh-agentįirst, start the SSH Agent in the background by running the following in a terminal: eval "$(ssh-agent -s)" Follow these steps to resolve the problem: On Windows and Linux, you may get an error because the agent is not running (macOS typically has it running by default). ![]() ![]() For example, run this from a terminal or PowerShell: ssh-add $HOME /.ssh/github_rsa You can add your local SSH keys to the agent if it is running by using the ssh-add command. To enable this scenario, the extension will automatically forward your local SSH agent if one is running. There are some cases when you may be cloning your repository using SSH keys instead of a credential helper. Credentials you've entered locally will be reused in the container and vice versa. If you use HTTPS to clone your repositories and have a credential helper configured in your local OS, no further setup is required. gitconfig file into the container on startup so you should not need to do this in the container itself. You can do this on your local machine by running the following commands: git config -global user.name "Your Name" git config -global user.email extension will automatically copy your local. If you do not have your user name or email address set up locally, you may be prompted to do so. In this section, we'll walk through the two supported options. The Dev Containers extension provides out of the box support for using local Git credentials from inside a container. Sharing Git credentials with your container
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |