From 9d57249af5f3a043090e3319d830e6e70d316be4 Mon Sep 17 00:00:00 2001 From: Staok Date: Fri, 25 Feb 2022 20:35:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85git=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/git.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/git.txt b/tools/git.txt index 6bafaeb..25a46aa 100644 --- a/tools/git.txt +++ b/tools/git.txt @@ -21,8 +21,9 @@ git pull origin #从远程库拉取最新 4、在本地添加、修改自己的文件 5、add/commit/push: + git status # git add . #提交所有更改 - git commit -am 'commit' #对本次更改添加说明信息 + git commit -m "提交说明" #对本次更改添加说明信息 git push origin #推送到远程库 6、历史回溯,分支管理,处理合并,Fork + PullRequest 等操作另处去学 @@ -63,7 +64,7 @@ git diff --check 检查是否有空白错误(regex:' \{1, git diff --cached 查看已add的内容(绿M) git diff branch1 branch2 --stat 查看两个分支差异 git diff branch1 branch2 查看分支文件具体差异 - +gitk #调出 git GUI 来以图形化界面查看仓库分支状况 ############################################################################## # 查看历史版本、历史操作 ##############################################################################