, когда я вхожу «статус мерзавец» я вижу что-то вроде:Как я могу сделать один файл с помощью git?
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
обычно я просто использовать «мерзавец совершить -m„сообщение“» совершить все файлы, но здесь я только переименован 2 файла, я посмотрел в папках/target и theres ничего, что нужно сделать.
любая помощь?
Что вы пытаетесь совершить? – Simon
Использование 'git commit -a' или любой другой« глобальной »команды git commit - очень плохая практика. Просто используйте 'git add', чтобы добавить соответствующие файлы. Здесь нужные изменения уже находятся в индексе («Изменения для совершения»), поэтому просто выпустите 'git commit'. – fge
@Simon im пытается зафиксировать 2 файла jsp, кажется, что есть файлы iml/random в целевых папках, которые я не хочу комментировать. – iCodeLikeImDrunk