Problems with vsCode using git

vscode uses git to enter a git account and password every time it is pushed. I don"t need it before, and now I don"t know why


you access the Git warehouse in HTTP (S) mode

use SSH protocol to access Git repository

  • create a SSH key
  • configure the target host (git service) and private key in ssh-agent
  • configure the public key to the git service's own account

refer to


configure local warehouse

git config user.name "your_name"
git config user.email XXXX@gmail.com

PS: HTTPS allows you to enter a user name and password each time. The solution is as follows

create A. git-credential file and write user information: username and password

git config  credential.helper store                  //()
git config --global credential.helper store          //push 

the push code will let you enter the github user name and password, and the user name password entered in this step will be remembered.
the next time you enter the push code, you don't have to enter the user name password. This step will generate a file under the user directory. Git-credential records the user name and password information.


install a TortoiseGit turtle, and then right-click in the project directory to see how the user name and password are saved.


the user name and password + host are different because there are multiple remote repositories, such as github, gitee, and then confused. In other words, the user name and password previously saved with vscode are not valid for the current remote repository, so you are always asked to enter them, but they are not saved in place?


https://git-scm.com/docs/git-.


https source is replaced by git source
`
git remote-v
git remote remove origin
git remote add origin git source
`


< H2 > git push password-free < / H2 >

you need to enter a username and password each time you submit the code, which means you are using HTTPS's key to pull the code from the clone code in the warehouse. When using SSH key pull substitution code, it is not needed.

  • create a file .git-credentials store GIT username and password
  https://github.com/chenyinkai. refer to this for quick resolution 

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b999a1-2f18a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b999a1-2f18a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?