snippetbashTip
git p4 — Import from and submit to Perforce repositories. More information: <https://git-scm.com/docs/git-p4>
Viewed 0 times
importcommandfromandperforcecligit p4submit
Problem
How to use the
git p4 command: Import from and submit to Perforce repositories. More information: <https://git-scm.com/docs/git-p4>.Solution
git p4 — Import from and submit to Perforce repositories. More information: <https://git-scm.com/docs/git-p4>.Clone a Perforce depot into a new Git repository:
git p4 clone {{path/to/p4_depot}}Sync changes from Perforce into the current Git repository:
git p4 sync {{path/to/p4_depot}}Rebase local commits on top of the latest Perforce changes:
git p4 rebaseSubmit Git changes back to Perforce:
git p4 submitClone the full Perforce history instead of only the latest changelist:
git p4 clone {{path/to/p4_depot}}@allCode Snippets
Clone a Perforce depot into a new Git repository
git p4 clone {{path/to/p4_depot}}Sync changes from Perforce into the current Git repository
git p4 sync {{path/to/p4_depot}}Rebase local commits on top of the latest Perforce changes
git p4 rebaseSubmit Git changes back to Perforce
git p4 submitClone the full Perforce history instead of only the latest changelist
git p4 clone {{path/to/p4_depot}}@allContext
tldr-pages: common/git p4
Revisions (0)
No revisions yet.