buggithelp wanted
仓库指标
- Star
- (74,848 star)
- PR 合并指标
- (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)
描述
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.85.0 (user setup) commit af28b32d7
- OS Version: Windows_NT x64 10.0.22621
Steps to Reproduce:
-
Create new folder and enter folder:
mkdir test1 && cd test1 -
Open vscode: `code . --disable-extensions
-
Use activity bar to initialize new repo
-
Create new text file but don't check it in
-
Use command palette to create new branch
Git: Create Branchwith nametest -
Get error - "Error: Git: fatal:
Headis not a commit and a branchtestcannot be created from it" -
Show git command:
> git checkout -q -b test --no-track HEAD fatal: 'HEAD' is not a commit and a branch 'test' cannot be created from it -
Reproduce branch in terminal:
git checkout -b test=> success