From 27005abd8ff342ccd1a7dffa0cc3c9940fd72405 Mon Sep 17 00:00:00 2001 From: JIAL <2287346125@qq.com> Date: Sat, 18 Nov 2023 12:42:30 +0800 Subject: [PATCH] 2023/11/18 --- VSCode/git配置笔记.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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