VScode 使用git报错处理方法

怼烎@ 2024-03-31 12:18 254阅读 0赞

9281f70f13304112843d295bfc151971.png

  1. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面
  2. $ git config --global user.name 'wkz123456987'
  3. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面
  4. $ git clone 'https://github.com/wkz123456987/vscode.git'
  5. Cloning into 'vscode'...
  6. warning: You appear to have cloned an empty repository.
  7. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面
  8. $ cd vscode
  9. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  10. $ git add index.js
  11. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  12. $ git commit -m '这是添加的信息不然会提交不上去'
  13. Author identity unknown
  14. *** Please tell me who you are.
  15. Run
  16. git config --global user.email "you@example.com"
  17. git config --global user.name "Your Name"
  18. to set your account's default identity.
  19. Omit --global to set the identity only in this repository.
  20. fatal: unable to auto-detect email address (got '联想@LAPTOP-GCEH3FAQ.(none)')
  21. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  22. $ git commit -m 'add index.js no use chinese'
  23. Author identity unknown
  24. *** Please tell me who you are.
  25. Run
  26. git config --global user.email "you@example.com"
  27. git config --global user.name "Your Name"
  28. to set your account's default identity.
  29. Omit --global to set the identity only in this repository.
  30. fatal: unable to auto-detect email address (got '联想@LAPTOP-GCEH3FAQ.(none)')
  31. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  32. $ git push
  33. error: src refspec refs/heads/main does not match any
  34. error: failed to push some refs to 'https://github.com/wkz123456987/vscode.git'
  35. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  36. $ git config --global user.name 'wkz123456987'
  37. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  38. $ git config --global user.email '2797847480@qq.com'
  39. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  40. $ git add index.js
  41. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  42. $ git commit -m 'add index.js'
  43. [main (root-commit) 7c0484a] add index.js
  44. 1 file changed, 0 insertions(+), 0 deletions(-)
  45. create mode 100644 index.js
  46. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  47. $ git push
  48. fatal: unable to access 'https://github.com/wkz123456987/vscode.git/': OpenSSL SSL_read: Connection was reset, errno 10054
  49. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  50. $
  51. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  52. $ git config --global http.sslVerify false
  53. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  54. $ git push
  55. fatal: bad boolean config value '“false”' for 'http.sslverify'
  56. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  57. $ git config --global http.sslVerify "false"
  58. 联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
  59. $ git pus

想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面
$ git config —global user.name ‘wkz123456987’

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面
$ git clone ‘https://github.com/wkz123456987/vscode.git‘
Cloning into ‘vscode’…
warning: You appear to have cloned an empty repository.

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面
$ cd vscode

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git add index.js

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git commit -m ‘这是添加的信息不然会提交不上去’
Author identity unknown

*** Please tell me who you are.

Run

git config —global user.email “you@example.com
git config —global user.name “Your Name”

to set your account’s default identity.
Omit —global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘联想@LAPTOP-GCEH3FAQ.(none)’)

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git commit -m ‘add index.js no use chinese’
Author identity unknown

*** Please tell me who you are.

Run

git config —global user.email “you@example.com
git config —global user.name “Your Name”

to set your account’s default identity.
Omit —global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘联想@LAPTOP-GCEH3FAQ.(none)’)

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git push
error: src refspec refs/heads/main does not match any
error: failed to push some refs to ‘https://github.com/wkz123456987/vscode.git‘

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git config —global user.name ‘wkz123456987’

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git config —global user.email ‘2797847480@qq.com

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git add index.js

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git commit -m ‘add index.js’
[main (root-commit) 7c0484a] add index.js
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 index.js

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git push

fatal: unable to access ‘https://github.com/wkz123456987/vscode.git/‘: OpenSSL SSL_read: Connection was reset, errno 10054

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git config —global http.sslVerify “false”

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git push
fatal: bad boolean config value ‘“false”’ for ‘http.sslverify’

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git config —global http.sslVerify “false”

联想@LAPTOP-GCEH3FAQ MINGW64 /d/one/OneDrive/桌面/vscode (main)
$ git push

发表评论

表情:
评论列表 (有 0 条评论,254人围观)

还没有评论,来说两句吧...

相关阅读