forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Setup
- Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.16.2.windows.1
cpu: x86_64
built from commit: e1848984d1004040ec5199e749b5f282ddf4bb09
sizeof-long: 4
- Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.16251.1000]
- What options did you set as part of the installation? Or did you choose the
defaults?
$ cat /etc/install-options.txt
Editor Option: VIM
Path Option: CmdTools
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: ConHost
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Tried bash and CMD
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git checkout $SHA1
git reset --hard HEAD
- What did you expect to occur after running these commands?
an error identifying the problematic file names with invalid characters (colon in this case)
- What actually happened instead?
no error from git checkout or git reset --hard (zero exit code). Full sequence below:
$ git clone https://git.illumina.com/Isas/WGSWorker
Cloning into 'WGSWorker'...
remote: Counting objects: 7201, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 7201 (delta 23), reused 25 (delta 11), pack-reused 7156
Receiving objects: 100% (7201/7201), 2.72 MiB | 13.22 MiB/s, done.
Resolving deltas: 100% (4979/4979), done.
$ echo $?
0
$ cd WGSWorker
eroller MINGW64 /c/Projects/Isas/WGSWorker (develop)
$ git checkout d0b6625b873d80a87d0201c698f093a97600fe0e
Note: checking out 'd0b6625b873d80a87d0201c698f093a97600fe0e'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at d0b6625 Merge pull request #384 from Isas/app-merge
$ echo $?
0
$ git status
HEAD detached at d0b6625
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: BaseSpaceAppAutoDeploy/Images/Icon100:icon_100_100.png
deleted: BaseSpaceAppAutoDeploy/Images/Icon30:icon_30_30.png
deleted: BaseSpaceAppAutoDeploy/Images/Icon57:icon_57_57.png
Untracked files:
(use "git add <file>..." to include in what will be committed)
BaseSpaceAppAutoDeploy/Images/Icon100
BaseSpaceAppAutoDeploy/Images/Icon30
BaseSpaceAppAutoDeploy/Images/Icon57
no changes added to commit (use "git add" and/or "git commit -a")
$ git reset --hard HEAD
HEAD is now at d0b6625 Merge pull request #384 from Isas/app-merge
$ echo $?
0
$ git status
HEAD detached at d0b6625
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: BaseSpaceAppAutoDeploy/Images/Icon100:icon_100_100.png
deleted: BaseSpaceAppAutoDeploy/Images/Icon30:icon_30_30.png
deleted: BaseSpaceAppAutoDeploy/Images/Icon57:icon_57_57.png
Untracked files:
(use "git add <file>..." to include in what will be committed)
BaseSpaceAppAutoDeploy/Images/Icon100
BaseSpaceAppAutoDeploy/Images/Icon30
BaseSpaceAppAutoDeploy/Images/Icon57
no changes added to commit (use "git add" and/or "git commit -a")
Metadata
Metadata
Assignees
Labels
No labels