Skip to main content
added 20 characters in body
Source Link
Werner Henze
  • 16.8k
  • 12
  • 47
  • 70

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. i.e. 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. i.e. 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 'CTRLCTRL + ENTER'ENTER key combination. Unfortunately it didn't go as planned and instead I got an error like the below screenshot.

    enter image description here

  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.

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

enter image description here

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

enter image description here

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

Please help me.

Thanks and regards, Chiranthaka

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. i.e. 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. i.e. 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.

    enter image description here

  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.

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

enter image description here

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

enter image description here

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

Please help me.

Thanks and regards, Chiranthaka

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. i.e. 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. i.e. 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.

    enter image description here

  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.

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

enter image description here

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

enter image description here

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

Please help me.

Thanks and regards, Chiranthaka

Source Link
ChiranSJ
  • 165
  • 1
  • 3
  • 24

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. i.e. 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. i.e. 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.

    enter image description here

  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.

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

enter image description here

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

enter image description here

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

Please help me.

Thanks and regards, Chiranthaka