git restore --staged example.txt 执行上述命令后,example.txt 文件将从暂存区中移除,但工作区中的修改仍然保留。你可以使用 git status 命令来查看当前的状态,确认文件已经从暂存区中移除。 这个命令在团队协作中非常有用,因为它允许你在不丢失工作区修改的情况下,灵活地调整暂存区的内容。 <br> 🚀 高效开发...
in Public note Git unstage version control git reset filename.txt Will remove a file named filename.txt from the current index, the "about to be committed" area, without changing anything else. To undogit add .usegit reset(no dot). ...
Most untracked files will be staged and committed. Others will simply be ignored by including them in the.gitignorefile. However, some files and directories will remain untracked, and in certain instances it can be useful to delete these untracked files from your Git repo. In this article, we...
(or one of those nested inside it) still uses a .git directory, git rm will fail - no matter if forced or not - to protect the submodule’s history. If it exists the submodule.<name> section in thegitmodules(5) file will also be removed and that file will be staged (unless --...
'%{_libexecdir}/rpm-ostree*' \ - '%{_datadir}/polkit-1/actions/*.policy' \ '%{_datadir}/dbus-1/system-services' \ '%{_datadir}/bash-completion/completions/*' diff --git a/src/app/libmain.cxx b/src/app/libmain.cxx index 61d17aa..3899e24 100644 --- a/src/app/...
remove-memo-in-redeem remove-new-deploy remove-scrollbar-fc-history remove-source-map-analyzer remove-tier remove-tier-limit remove-tier-nomenclature remove-v1-from-shared remove_constants.ts_use_constants.tsx remove_menu_items remove_mobile_check_for_transaction_list_style_move_mobile_into_desktop...
.gitignore initial 2.0 Mar 5, 2019 .huskyrc.js initial 2.0 Mar 5, 2019 .lintstagedrc.js initial 2.0 Mar 5, 2019 .np-config.js use np to handle package releases May 30, 2019 .npmrc initial 2.0 Mar 5, 2019 .prettierignore initial 2.0 ...
Expand All @@ -5136,7 +4901,7 @@ lint-staged@^8.1.0: staged-git-files "1.1.2" string-argv "^0.0.2" stringify-object "^3.2.2" yup "^0.26.10" yup "^0.27.0" listr-silent-renderer@^1.1.1: version "1.1.1" Expand Down Expand Up @@ -5256,12 +5021,7 @@ lodash.sortby@^...