当我输入“git status”时,我会看到类似的内容:
C:\cygwin\home\GIT\webapps>git status
# On branch webapp_633
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# renamed: dir/another_dir/then_another_dir/dir_AGAIN/file.jsp -> dir/another_dir/then_another_dir/dir_AGAIN2/file.jsp
# renamed: dir/another_dir/then_another_dir/dir_AGAIN/file2.jsp -> dir/another_dir/then_another_dir/dir_AGAIN2/file2.jsp
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# dir/another_dir/then_another_dir/target
# dir/dir/another_dir/then_another_dir/target
# dir/dir/dir/another_dir/then_another_dir/target
# dir/dir/dir/dir/another_dir/then_another_dir/target
# dir/dir/another_dir/then_another_dir/dir/target
通常我只是使用“git commit -m”消息“”来提交所有文件,但在这里我只重命名了2个文件,我查看了/ target文件夹,并且没有任何需要提交的内容。
任何帮助?
答案 0 :(得分:1)
未提交未跟踪的文件,因此您可以这样做:
git commit -m "message"
如果您需要提交未跟踪的文件,首先需要先使用git add添加它们。