git mv를 사용하지 않고 IDE 또는 명령 행을 사용하여 git 저장소에서 파일을 이동시키는 경우가 많습니다. 결과 I로서 쉬운 방법 Git에서 삭제되지 않은 파일 정리하기
여러 unstaged 파일로 끝날
는에 삭제 될 내 옆에 다음과 같이 약속한다# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: test.html
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: css/bootstrap.css
# deleted: css/bootstrap.min.css
# deleted: img/glyphicons-halflings-white.png
# deleted: img/glyphicons-halflings.png
# deleted: js/bootstrap.js
# deleted: js/bootstrap.min.js
나는 일반적으로 모든 삭제 된 파일을 선택하고 같은 생산하는 텍스트 편집기에서 편집 할
:
git rm css/bootstrap.css
git rm css/bootstrap.min.css
git rm img/glyphicons-halflings-white.png
git rm img/glyphicons-halflings.png
git rm js/bootstrap.js
git rm js/bootstrap.min.js
다음 콘솔로 다시 던집니다.
복사/붙여 넣기를하지 않고도이 작업을 수행 할 수 있습니까? 내가 제대로 질문을 이해한다면
는이 적합 "자식이 -A를 추가 할 것"이라고? –