[英]Git add interactive new file
Is there any way when I am adding new files to my project to make them be picked up by 当我向项目中添加新文件以使其被提取时,有什么办法吗?
git add -i
If I make changes to an existing file, then that is ok. 如果我对现有文件进行更改,那就没问题。 But creating a new file it is marked as untracked and
git add -i
does not pick it up. 但是创建一个新文件它被标记为未跟踪,
git add -i
不会将其提取。
当您在“git add -i”的交互式会话中时,可以使用选项编号4添加未跟踪的文件
Sometimes git add .
有时
git add .
and git add -i
does not stage all changes whether tracked or untracked. 并且
git add -i
不会跟踪所有更改,无论是跟踪还是未跟踪。 You could try using git gui
to choose which files to stage if you have it installed. 您可以尝试使用
git gui
选择要安装的文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.