vscode与git
记录一下在vscode中clone代码与上传到仓库其中几点小步骤推荐观看推荐并不是说最好的是我个人觉得有用的dy视频1.https://www.douyin.com/video/7491109504080219418?count10cursor0enter_methodlikemodeFromuserLikeprevious_pagepersonal_homepagesecUidMS4wLjABAAAAxnmZSc5uFvEo48aESvdYjaJR9DQmH6L1G5ttPD2Cua02.https://www.douyin.com/video/7494641436013595915csdn相关文章1.在vscode拉取GitHub上的项目_vscode下载github上文件-CSDN博客2.vscode与git_vscode和git-CSDN博客几点问题问题1配置ssh密钥时怎么都连接不了github设置用https都不行dy视频1ssh: connect to host github.com port 22: Connection timed out解决办法由于我用的是公司的网后换成流量就可以了。另终端快捷键CTRL,或者直接找terminal--new terminal备注视频2博主的终端界面和我的有区别# 生成 SSH 密钥 ssh-keygen -t rsa -C 你的邮箱地址 # 查看公钥 cat id_rsa.pub问题2.在终端输入git config -- global user.namewaner或者git config -- global user.namewaner报错(dy视频2)解决办法正确输入为git config --global user.namewaner即git configk空格--global空格user.name名字备注不确定是否可以用还是一定不能用有的博主用有的博主不用。等以后再确认吧问题3.按照视频2把用户名和地址配置好了commit时vscode还是提示确认用户名和地址,无法连接到github解决办法见csdn文章2把去掉换成空格git config --global user.name iceylia git config --global user.enail 92439af.com如何clone有的博主在终端git clone https://github.com/用户名/仓库名.git即git clone空格SSH我比较推荐以下方式