문제

Perforce와 상호 작용하는 빌드 스크립트를 만들고 있으며 몇 파일을 삭제하려면 표시하고 싶습니다. 명령 줄을 사용하는 P4 구문은 정확히 무엇입니까?

도움이 되었습니까?

해결책

p4 delete filename

(P4의 출력 삭제)

삭제 - 기존 파일을 열어 창고에서 삭제하십시오.

p4 삭제 [-c changelist#] [-n] 파일 ...

Opens a file that currently exists in the depot for deletion.
If the file is present on the client it is removed.  If a pending
changelist number is given with the -c flag the opened file is
associated with that changelist, otherwise it is associated with
the 'default' pending changelist.

Files that are deleted generally do not appear on the have list.

The -n flag displays what would be opened for delete without actually
changing any files or metadata.

다른 팁

사람에게 낚시를 가르쳐주십시오.

  • p4 help - 일반 명령 구문을 얻습니다
  • p4 help commands - 명령을 나열합니다
  • p4 help <command name> - 특정 명령에 대한 상세한 도움을 제공합니다

http://www.perforce.com/perforce/doc.062/manuals/boilerplates/quickstart.html

파일 삭제

Perforce 서버와 작업 공간에서 파일을 삭제하려면 P4 Delete 명령을 발행하십시오. 예를 들어:

p4 delete demo.txt readme.txt

지정된 파일은 작업 영역에서 제거되어 서버에서 삭제하도록 표시됩니다. 결국 파일을 삭제하고 싶지 않다고 결정하면 P4 리버드 명령을 발행하십시오. 삭제를 위해 열린 파일을 되돌리면 Perforce는 작업 공간으로 복원합니다.

인정 - 설치와 일치하는 버전에서 온라인에서 (우수한!) Perforce 사용자 안내서를 찾으려면 (작은) 수많은 단계가 필요합니다.

P4 Command Line 클라이언트에 대해 필요한 것이 필요하다고 생각할 때마다 Perforce가 내장 된 도움에 의존합니다. 액세스하는 것이 더 쉬울 수 없습니다.

  1. 명령 줄에서 입력하십시오 p4

이것은 마이클 버 (Michael Burr)가 그의 대답에서 보여준 정보를 얻습니다. 도움말 화면을 즉시 얻지 못하면 클라이언트 구성에 문제가 있습니다. 예를 들어 P4port는 제대로 설정되지 않습니다. 당신은 분명히 그것을 먼저 해결해야합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top