26.09.29
0
조회 205
26.09.26
1
조회 161
26.09.24
0
조회 193
26.09.23
0
조회 197
26.09.19
0
조회 513
26.09.11
0
조회 153
26.09.10
0
조회 152
26.09.10
0
조회 151
26.09.10
0
조회 119
26.09.10
0
조회 103
26.09.09
1
조회 106
26.09.04
0
조회 506
26.09.03
0
조회 342
26.09.01
1
조회 140
26.08.29
0
조회 183
26.08.22
0
조회 297
26.08.20
0
조회 327
26.08.13
0
조회 316
26.08.13
0
조회 370
26.08.13
0
조회 213
댓글 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)
이렇게 해 보세요.
다음번에 로그파일 지우고 기진곰님이 알려 준걸로 사용하겠습니다.
감사합니다 ^^;