Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2026.1

# Using labels with Git

If you are using Git with P4 Server, and you want to support build systems that need to build from multiple repos not all of which are at the same branch, tag, or commit (SHA), create a label specification in which the `Revision` field is set to `"#head"`:

Copy

    # A Perforce Label Specification.
    Label:    mylabel
    Update:    2017/08/08 15:23:08
    Access:    2012/01/23 16:16:17
    Owner:    bruno
    Description:
        Created by bruno.
    Options:    unlocked noautoreload
    Revision:    "#head"
    View:
        //repo/linux/projects/...@main
        //repo/linux/projects/drivers/...@dev-1
        //repo/linux/projects/forms/...@4759B19D1EB8B706E71D54AD168AA

For more information about using Git with P4 Server, see Work with Git in P4 Server Administration Documentation.

Your search for returned results