From d6318caf1dfb7cd8395c9228db0d77b7a7759c73 Mon Sep 17 00:00:00 2001 From: xueweihan <595666367@qq.com> Date: Mon, 18 Jul 2016 23:21:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 44 ++++---------------------------------------- 1 file changed, 4 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index c664c1f..d153758 100644 --- a/README.md +++ b/README.md @@ -217,47 +217,26 @@ git stash clear git checkout -- ``` -## Show all tracked files +## 展示所有tracked的文件 ```sh git ls-files -t ``` -## Show all untracked files +## 展示所有untracked的文件 ```sh git ls-files --others ``` -## Show all ignored files +## 展示所有忽略的文件 ```sh git ls-files --others -i --exclude-standard ``` -## Create new working tree from a repository (git 2.5) -```sh -git worktree add -b -``` - ## Create new working tree from HEAD state ```sh git worktree add --detach HEAD ``` -## Untrack files without deleting -```sh -git rm --cached -``` - - -__Alternatives:__ -```sh -git rm --cached -r -``` - -## Before deleting untracked files/directory, do a dry run to get the list of these files/directories -```sh -git clean -n -``` - ## 强制删除untracked的文件 清空工作区untracked的文件 ```sh @@ -275,16 +254,6 @@ git clean -df git branch -m ``` -## rebases 'feature' to 'master' and merges it in to master -```sh -git checkout feature && git rebase @{-1} && git checkout @{-2} && git merge @{-1} -``` - -## Archive the `master` branch -```sh -git archive master --format=zip --output=master.zip -``` - ## Modify previous commit without modifying the commit message ```sh git add --all && git commit --amend --no-edit @@ -402,7 +371,7 @@ git checkout -- git config --global branch.autosetuprebase always ``` -## List all the alias and configs. +## 展示所有alias和configs. ```sh git config --list ``` @@ -417,11 +386,6 @@ git config --global core.ignorecase false git config --global core.editor '$EDITOR' ``` -## Auto correct typos. -```sh -git config --global help.autocorrect 1 -``` - ## Check if the change was a part of a release. ```sh git name-rev --name-only