From a362ff291cc63d193bb3e9c55eece0d7cdc741c0 Mon Sep 17 00:00:00 2001 From: JIAL <2287346125@qq.com> Date: Sat, 18 Nov 2023 12:11:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9git=E7=AC=94=E8=AE=B0=E7=9A=84?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VSCode/git配置笔记.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/VSCode/git配置笔记.txt b/VSCode/git配置笔记.txt index 27b7ad3..499ae01 100644 --- a/VSCode/git配置笔记.txt +++ b/VSCode/git配置笔记.txt @@ -9,4 +9,14 @@ git push -u origin main git config --global user.name "JIAL" git config --global user.email "2287346125@qq.com" -git add . //添加所有文件到仓库 \ No newline at end of file +git add . //添加所有文件到仓库 + +添加所有文件到缓冲区(从目前掌握的水平看,和后面加“.”的区别在于,加all可以添加被手动删除的文件,而加“.”不行): +git add . +git add --all + +提交:提缓冲区的所有修改文件到仓库(如果修改了文件但是没有到仓库,是不会被提交的) +git commit -m "提交的说明" + +推送到远程分支 +git push origin master \ No newline at end of file