|
git archive -o archive.zip HEAD $(git diff --name-only 5.0.20..5.0.21)
|
fatal: pathspec 'pg/inicis/logs/20171102111.log' did not match any files
두버전 사이에 변경된걸 뽑으려하는데 이런 오류가 뜹니다.
git 완전 초보라 어찌 대응해야 될지 모르겠습니다ㅠ
|
git archive -o archive.zip HEAD $(git diff --name-only 5.0.20..5.0.21)
|
fatal: pathspec 'pg/inicis/logs/20171102111.log' did not match any files
두버전 사이에 변경된걸 뽑으려하는데 이런 오류가 뜹니다.
git 완전 초보라 어찌 대응해야 될지 모르겠습니다ㅠ
댓글 6
git diff --name-only 5.0.20..5.0.21
이 명령만 사용했을 때 나오는 파일명은 모두 정상인가요? 중간에 로그 파일 같은 것이 커밋되었다가 지워졌다면 현재 버전에서 해당 파일을 찾을 수 없기 때문에 오류가 나옵니다.
$ git diff --name-only 2.1.1..2.1.2
conf/info.xml
conf/module.xml
m.skins/default/js/insert.js
m.skins/default/js/order.js
m.skins/default/js/yeyak.js
pg/inicis/log/INIPHP_cancel_INIpayTest_161228.log
pg/inicis/log/INIPHP_cancel_INIpayTest_161229.log
~~ 중략 ~~
tpl/mpu.html
tpl/options.html
tpl/options_delete.html
tpl/options_write.html
tpl/pay.html
tpl/pop_sms.html
tpl/pop_sms_rs.html
tpl/res.html
tpl/res_delete.html
tpl/res_view.html
:
이렇게 나옵니다.
별다른 오류는 안보입니다.
본문 명령어는 작업하느라 복사 해둔거라 .. 다시 해봐도 결과는 똑 같네요.
$ git archive -o archive.zip HEAD $(git diff --name-only 2.1.1..2.1.2)
fatal: pathspec 'pg/inicis/log/INIPHP_cancel_INIpayTest_161228.log' did not match any files
압축하라고 하면 당연히 에러가 나겠지요...?
로그파일은 원래 커밋하면 안되는데 중간에 실수로 커밋하셨던 것 같습니다.
압축할 파일 목록에서 pg/inicis/log 폴더는 제외해야겠네요.
git archive -o archive.zip HEAD $(git diff --name-only 5.0.20..5.0.21 | grep -v pg/inicis/log)
이렇게 해 보세요.
다음번에 로그파일 지우고 기진곰님이 알려 준걸로 사용하겠습니다.
감사합니다 ^^;