git-p4
Bidirectional Git-Perforce integration
TLDR
Clone from Perforce
SYNOPSIS
git p4 command [options]
DESCRIPTION
git p4 enables bidirectional interaction between Git and Perforce. It can import Perforce depot history into a Git repository and submit Git commits back to Perforce, supporting both migration and ongoing hybrid workflows.
The tool maps Perforce depot paths to Git branches, allowing teams to work with Git locally while maintaining synchronization with a Perforce server. It supports gradual migration from Perforce to Git as well as permanent dual-system setups.
PARAMETERS
clone DEPOT
Import from Perforce depot.sync
Fetch changes from Perforce.submit
Submit git commits to Perforce.rebase
Rebase on Perforce changes.--branch BRANCH
Target branch.--detect-branches
Auto-detect branches.--help
Display help information.
CAVEATS
Requires Python and p4 client. Some Perforce features don't map to git. Complex branch layouts challenging.
HISTORY
git p4 was created to support teams transitioning from Perforce to Git, or needing to work with both systems simultaneously.
