diff --git a/VSCode/git配置笔记.txt b/VSCode/git配置笔记.txt index 499ae01..eb26c64 100644 --- a/VSCode/git配置笔记.txt +++ b/VSCode/git配置笔记.txt @@ -18,5 +18,8 @@ git add --all 提交:提缓冲区的所有修改文件到仓库(如果修改了文件但是没有到仓库,是不会被提交的) git commit -m "提交的说明" -推送到远程分支 -git push origin master \ No newline at end of file +推送到远程分支,origin后面跟自己的分支 +git push origin main + +error: src refspec master does not match any +检查自己的分支名,不能推送给其他分支 \ No newline at end of file