简体   繁体   中英

Using Commit command With Git & Github in Visual Studio Code

I am trying to upload an HTML file for a Github repository. I am trying to commit using Visual Studio Code's GUI.

I wil explain what I have done so far.

  1. Created a Git repository. ie PHP_Development
  2. Repository URL. https://github.com/ChiranthakaJ/PHP_Development.git
  3. Added the folder in my PC where my source codes are located. ie D:\\MyDev\\PHP-Dev
  4. Added a remote repository location named 'MyPHPDev'& added the repository URL as for the remote location.
  5. Then I tried to do the initial commit using CTRL + ENTER key combination. Unfortunately it didn't go as planned and instead I got an error like the below screenshot.

    在此处输入图片说明

  6. Then I did a small edit to the same file and tried to commit again and got the same error message as the above.

    1. However the 'Stage changes' were captured properly. Please refer the below screenshot as well.

在此处输入图片说明

  1. Please refer the screenshot of the 'Git Log'.

在此处输入图片说明

I can't understand what I have done wrong here?

Please help me.

Thanks and regards, Chiranthaka

You gotta tell the git client about the GPG key that you are using. Either commit the change manually by CLI without signing the commit using the command

git commit

You can setup the GPG keys and try again. For more info on how to setup the GPG keys, you can visit Here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM