tldr/pages/common/p4.md

37 lines
599 B
Markdown
Raw Normal View History

2018-10-08 23:05:13 +01:00
# p4
> Perforce Version Control System.
2019-06-04 10:00:17 +01:00
> More information: <https://www.perforce.com/manuals/cmdref>.
2018-10-08 23:05:13 +01:00
- Log in to the Perforce service:
`p4 login -a`
- Create a client:
`p4 client`
- Copy files from depot into the client workspace:
`p4 sync`
- Create or edit changelist description:
`p4 change`
- Open a file to edit:
`p4 edit -c {{changelist_number}} {{path/to/file}}`
2018-10-08 23:05:13 +01:00
- Open a new file to add it to the depot:
`p4 add`
- Display list of files modified by changelist:
`p4 describe -c {{changelist_number}}`
- Submit a changelist to the depot:
`p4 submit -c {{changelist_number}}`