Git:Helix Server Command Mappings

The following table maps Git commands to their corresponding Helix Server commands:

Git Command Helix Server Command

git add

p4 reconcile

git branch

p4 switch -l

git checkout --orphan new_branch

p4 switch -cm new_stream

git checkout branch

p4 switch stream

git clone repository

p4 clone -p host:port -r remote

git commit

p4 submit

git init

p4 init

git merge branch

p4 merge --from stream

git pull

p4 fetch -t -r remote -S stream

git pull --all

p4 fetch -t

git push

p4 push -r remote -S stream

git push --all

p4 push

git rebase

p4 unsubmit followed by p4 resubmit

git remote

p4 remotes

git remote add new_remoterepository

p4 remote new_remote

git status

p4 status

git checkout -b new-branch

p4 switch -c new-branch

For more details on Helix Server commands, see the Helix Core Command-Line (P4) Reference.