From 99407deeccc363dcc7447a8057b1a98e8fbc258f Mon Sep 17 00:00:00 2001 From: zyimm Date: Wed, 4 Jan 2023 03:58:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zyimm --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9d4e5e7..60813d3 100644 --- a/README.md +++ b/README.md @@ -558,7 +558,7 @@ git diff --word-diff ## 清除 gitignore 文件中记录的文件 -```sh +```shell git clean -X -f ``` @@ -566,13 +566,13 @@ git clean -X -f **注意:** config 分为:当前目录(local)和全局(golbal)的 config,默认为当前目录的 config -```sh +```shell git config --local --list (当前目录) git config --global --list (全局) ``` ## 展示忽略的文件 -```sh +```shell git status --ignored ``` @@ -582,13 +582,13 @@ git log Branch1 ^Branch2 ``` ## 在 commit log 中显示 GPG 签名 -```sh +```shell git log --show-signature ``` ## 删除全局设置 -```sh +```shell git config --global --unset ``` @@ -596,18 +596,18 @@ git config --global --unset 相当于保存修改,但是重写 commit 历史 -```sh +```shell git checkout --orphan ``` ## 展示任意分支某一文件的内容 -```sh +```shell git show : ``` ## clone 下来指定的单一分支 -```sh +```shell git clone -b --single-branch https://github.com/user/repo.git ```