无法强制添加Git [英] Unable to Git-add with force
本文介绍了无法强制添加Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#未记录文件:
#(使用git添加< file> ...以包含将要提交的内容)
#
#screen / dev /
我运行
git add --force屏幕/ dev /
我得到和以前一样的git-status。我独立地在文件夹中添加每个文件,但是我获得了相同的git-status。
屏幕/ dev /中没有.git。该文件夹似乎不是一个sumbodule。 如何在〜/ bin中添加一个文件夹及其内容到我的git?解决方案
这个问题可以通过重命名文件夹并添加一个新的名字给Git来解决。 b
$ b
这表明我必须有一些文件操作文件夹名称 dev
。
I get git-status at ~/bin:
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# screen/dev/
I run
git add --force screen/dev/
I get the same git-status as before. I add each file in the folder independently, but I get the same git-status.
There is no .git in screen/dev/. The folder seems not to be a sumbodule.
How can you add a folder and its content with force to my git at ~/bin?
解决方案
The problem can be solved by renaming the folder and adding the folder with a new name to Git.
This suggests me that there must be some file manipulating the folder name dev
.
这篇关于无法强制添加Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文