要将未跟踪的文件或修改过的文件添加到 Git,您可以使用add命令。 这会将修改过的文件从工作目录添加到暂存区域。 通过add命令,您可以指定要添加文件的文件名。 星号可用于指示所有文件。 控制台复制 git add <filename> git add * 在Visual Studio Code 内,您可以通过在源代码管理窗口 (Ctrl+Shift+G) 中单击...
➜ learn_git git:(master) git reset --mixed HEAD~ ➜ learn_git git:(master) ✗ git status On branch master Your branch is up to date with 'origin/master'. Untracked files: (use "git add <file>..." to include in what will be committed) a.txt nothing added to commit but un...
Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: README.md modified: Sample.txt Untracked files: (use "git add <file>..." to include in what will be comm...
on the command line,git addwill fail with a list of ignored files. Ignored files reached by directory recursion or filename globbing performed by Git (quote your globs before the shell) will be silently ignored. Thegit addcommand can be used to add ignored files with the-f(force) option....
2. 添加文件:将要添加到Git仓库中的文件复制到项目文件夹中。运行 `git add` 命令将文件添加到缓冲区。例如,如果要添加名为 `example.txt` 的文件,可以运行 `git add example.txt` 命令。 3. 确认更改:运行 `git status` 命令可以查看文件的状态。添加到缓冲区的文件将显示为绿色,表示已准备好被提交。如果...
.editorconfig editorconfig: add Makefiles to "text files" Mar 24, 2024 .gitattributes .gitattributes: include text attribute for eol attributes Feb 7, 2023 .gitignore Makefile: allow "bin-wrappers/" directory to exist Dec 7, 2024 .gitlab-ci.yml Merge branch 'ps/ci-meson' Dec 24, 2024 ...
what will be committed)(use"git restore <file>..."to discard changesinworking directory)deleted: README.mdmodified: Sample.txtUntracked files:(use"git add <file>..."to includeinwhat will be committed)Sample.txt.bakTutorial.txtno changes added to commit(use"git add"and/or"git commit -a...
html Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: index.html (base) ➜ test01 (main) ✗ git commit [main (root-commit) 3d0b8d9] first commit ...
On branch main No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) deploy/ nothing added to commit but untracked files present (use "git add" to track) 此文本告知以下四条信息: 你当前在主分支中。 稍后,你将了解有关分支的信息。
git: worktree, Add StatusWithOptions Aug 3, 2024 submodule.go git: worktree, Pass context on updateSubmodules.Fixes#1098 Dec 18, 2024 submodule_test.go git: gocheck to testify migration.Fixes#1324 Dec 31, 2024 transport.go plumbing: transport, move client registry ...