在 Windows 上使用 git 流时出现奇怪的文件夹
Strange folder showing up when using git flow on Windows
我是 git-flow 的新手。我正在玩弄它以感受它。我正在 运行ning git 2.6.2 on Windows 10。大多数事情似乎工作正常,但我 运行 遇到这个问题:
我创建了两个内容冲突的功能分支。然后我完成他们两个。当我完成第二个时,我自然会产生冲突,然后我可以解决。但是,那时 git flow 似乎创建了一个奇怪的文件夹。
> git flow feature start PPLAN-0007_Doubles
[make change to files]
> git commit -am "PPLAN-0007: overloaded add
[make more change to files]
> git commit -am "PPLAN-0007: overloaded subtract"
> git flow feature start PPLAN-0008_single
[make conflicting change to files]
> git commit -am "PPLAN-0008: overloaded add"
[make more change to files]
> git commit -am "PPLAN-0008: overloaded subtract"
> git flow feature finish PPLAN-0007_Doubles
> git flow feature finish PPLAN-0008_single --showcommands
Branches 'develop' and 'origin/develop' have diverged.
And local branch 'develop' is ahead of 'origin/develop'.
git checkout develop
Already on 'develop'
Your branch is ahead of 'origin/develop' by 3 commits.
(use "git push" to publish your local commits)
git merge --ff feature/PPLAN-0008_single
Auto-merging Math.cs
CONFLICT (content): Merge conflict in Math.cs
Recorded preimage for 'Math.cs'
Automatic merge failed; fix conflicts and then commit the result.
There were merge conflicts. To resolve the merge conflict manually, use:
git mergetool
git commit
You can then complete the finish by running it again:
git flow feature finish PPLAN-0008_single
> git mergetool
[fix merge conflict]
> git status
On branch develop
Your branch is ahead of 'origin/develop' by 3 commits.
(use "git push" to publish your local commits)
All conflicts fixed but you are still merging.
(use "git commit" to conclude merge)
Changes to be committed:
modified: Math.cs
Untracked files:
(use "git add <file>..." to include in what will be committed)
"(cd .git 706/"
如您所见,我现在有一个奇怪的未跟踪文件。它实际上是一个已经创建的文件夹结构。在 GitExtensions
中看起来像这样:
看起来像是 unix 命令会创建的东西。
None git flow
命令报告任何错误。该文件实际上似乎是在第二个完成命令之后立即创建的。我是否解决冲突并不重要。
这是怎么回事?难道我做错了什么?需要配置什么?
我确实有一个似乎是解决方法的方法:我可以删除奇怪的文件,然后继续 git flow feature finish PPLAN-0008_single
。
这是git-flow AVH Edition中的一个bug,在软件1.9.1版本中已经修复。
Chocolatey 需要更新到这个版本。如果可能,您需要向 Chocolatey 提交错误报告。
我是 git-flow 的新手。我正在玩弄它以感受它。我正在 运行ning git 2.6.2 on Windows 10。大多数事情似乎工作正常,但我 运行 遇到这个问题:
我创建了两个内容冲突的功能分支。然后我完成他们两个。当我完成第二个时,我自然会产生冲突,然后我可以解决。但是,那时 git flow 似乎创建了一个奇怪的文件夹。
> git flow feature start PPLAN-0007_Doubles
[make change to files]
> git commit -am "PPLAN-0007: overloaded add
[make more change to files]
> git commit -am "PPLAN-0007: overloaded subtract"
> git flow feature start PPLAN-0008_single
[make conflicting change to files]
> git commit -am "PPLAN-0008: overloaded add"
[make more change to files]
> git commit -am "PPLAN-0008: overloaded subtract"
> git flow feature finish PPLAN-0007_Doubles
> git flow feature finish PPLAN-0008_single --showcommands
Branches 'develop' and 'origin/develop' have diverged.
And local branch 'develop' is ahead of 'origin/develop'.
git checkout develop
Already on 'develop'
Your branch is ahead of 'origin/develop' by 3 commits.
(use "git push" to publish your local commits)
git merge --ff feature/PPLAN-0008_single
Auto-merging Math.cs
CONFLICT (content): Merge conflict in Math.cs
Recorded preimage for 'Math.cs'
Automatic merge failed; fix conflicts and then commit the result.
There were merge conflicts. To resolve the merge conflict manually, use:
git mergetool
git commit
You can then complete the finish by running it again:
git flow feature finish PPLAN-0008_single
> git mergetool
[fix merge conflict]
> git status
On branch develop
Your branch is ahead of 'origin/develop' by 3 commits.
(use "git push" to publish your local commits)
All conflicts fixed but you are still merging.
(use "git commit" to conclude merge)
Changes to be committed:
modified: Math.cs
Untracked files:
(use "git add <file>..." to include in what will be committed)
"(cd .git 706/"
如您所见,我现在有一个奇怪的未跟踪文件。它实际上是一个已经创建的文件夹结构。在 GitExtensions
中看起来像这样:
看起来像是 unix 命令会创建的东西。
None git flow
命令报告任何错误。该文件实际上似乎是在第二个完成命令之后立即创建的。我是否解决冲突并不重要。
这是怎么回事?难道我做错了什么?需要配置什么?
我确实有一个似乎是解决方法的方法:我可以删除奇怪的文件,然后继续 git flow feature finish PPLAN-0008_single
。
这是git-flow AVH Edition中的一个bug,在软件1.9.1版本中已经修复。
Chocolatey 需要更新到这个版本。如果可能,您需要向 Chocolatey 提交错误报告。