forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Description
- Git reset HEAD~1 in newer git versions does not leave modified files in working tree, files doesn't show up until additional local modifications are made
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
git version 2.35.1.vfs.0.0
Edit: This user is also using VFS for Git.
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Windows 10 and 11 64bit
- What options did you set as part of the installation? Or did you choose the
defaults?
default
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
both CMD and Bash
| 2.33.0 | 2.35.1 |
|---|---|
| D:\os.2020.3\src>git status warning: unable to find all commit-graph files On branch official/main Your branch is up to date with 'origin/official/main'. nothing to commit, working tree clean D:\os.2020.3\src>git reset HEAD~1 warning: unable to find all commit-graph files D:\os.2020.3\src>git status Refresh index: 100% (3130996/3130996), done. warning: unable to find all commit-graph files On branch official/main Your branch and 'origin/official/main' refer to different commits. (use "git status --ahead-behind" for details) Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: sdpublic/misc/Labels/main_label.xml no changes added to commit (use "git add" and/or "git commit -a") |
D:\os.2020.4\src>git reset HEAD~1 warning: unable to find all commit-graph files D:\os.2020.4\src>git status warning: unable to find all commit-graph files On branch official/main Your branch and 'origin/official/main' refer to different commits. (use "git status --ahead-behind" for details) nothing to commit, working tree clean |
derrickstolee
Metadata
Metadata
Assignees
Labels
No labels