git基操 git add a.cpp 将工作区中的a添加到暂存区 git commit -m "somthing" a.cpp 将其添加到本地库 在github创建仓库后,将其克隆到vscode中后,默认远程仓库名为origin,所以在git bash中git reflog后看到有origin/main红色字,他不是分支删不掉 本栏目推荐文章linux 安装最新版本gitgit bash报错fatal: detected dubious ownership in repository at的解决方法git commit规范Git提交规范如何把已有项目上传到git一段shell代码可用于git部署代码到服务器的操作openEuler欧拉设置git pull免密git常用命令安装篇 —— gitConditional Git Configuration 有条件配置Git信息