Questions tagged [git-p4]

The git p4 command provides a way to interact with p4 repositories using git.

The git-p4 command, part of the git suite, allows you to create a git repository by importing from a Perforce repository and to sync updates from and submit changes to the Perforce repository.

132 questions
1
vote
1 answer

p4passwd invalid or unset in git-p4 python

So I have my perforce and git set up. I can easily access, modify perforce with simple commands like "p4 info" etc from the command line. I have a perforce workspace and I created a new directory for git next to it. Whenever I try "git p4 clone…
Asad S. Malik
  • 157
  • 1
  • 1
  • 10
1
vote
2 answers

Replace working copy of git repo with actual contents of repo in .git?

TLDR What is the git command to force the contents of the working copy to be what's actually in the repo in the .git subfolder? (In the event that changes are pushed from another machine to a remote repo that has a working copy) LONG STORY I would…
TinyGrasshopper
  • 2,190
  • 2
  • 17
  • 28
0
votes
1 answer

git-p4 submit on branch other than master?

I noticed that when using git-p4 submit, regardless of what branch I am in on git, it always sends my code to the place in p4 where I cloned it originally. That's my desired behavior when I am on the master branch, however, I'd like to correlate…
Raffi Khatchadourian
  • 3,042
  • 3
  • 31
  • 37
0
votes
0 answers

git-p4 clone is mandatory to run git-p4 sync?

I am using git-p4 sync command to get the files from perforce to git repository. I have been working in git for testing few changes on forked git repository (from original repository). I have buildbot CI build step configured to run git-p4 sync…
vam
  • 11
  • 3
0
votes
0 answers

git-p4 sync fails "No remote p4 branches. Perhaps you never did "git p4 clone" in here."

I have two git repositories one is original one and the other is forked one from original one. Forked one is for testing purpose. I am running git-p4 commands on on forked one. I get the issue as follows:- Syncing with origin first, using "git fetch…
vam
  • 11
  • 3
0
votes
0 answers

Merge last n number of commits from perforce repository to git repository

we have migrated our code base from perforce to git. development going on both perforce and git repository. Now I want to merge latest n number of commits from perforce to git repository. How to do it ? Thanks in advance.
Chaitali
  • 87
  • 13
0
votes
0 answers

git p4 branches not exported

I'm trying to migrate some p4 depots to github using git-p4.py script but I have trouble in exporting branches. p4 structure is like this: //depot1/first_directory/second_directory/projects_directory [eg: project_AA] (multiple directories that I…
AdiR
  • 1
0
votes
1 answer

git p4 sync into existing git repo seems not to work

Following the docs for adding a Perforce repo into an existing git repo seems not to work If I do this I get the following $ git p4 sync //depot/group/project/example Doing initial import of //depot/group/project/example from revision #head into…
Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
0
votes
0 answers

git-p4 sync perforce branches into custom folders with history under Git main branch like below folder structure

Migrate perforce branches with history to git repository under main branch with below folder structure. Git repository name : demo git branch : main demo/cloud ← //ABC/UI/ML/cloud demo/Scripts ← //ABC/UI/ML/Scripts demo/css ← //ABC/UI/ML/css under…
Shiva
  • 91
  • 1
  • 3
0
votes
1 answer

How can a remote branch be local? (git-p4)

When I use git-p4 sync to add additional p4 branches to a p4 repository I've created using git-p4 clone, they show up as remote branches, e.g. remotes/p4/p4branchname. So they're not really "in" my local repo, meaning I can't push them, and I can't…
Steve Summit
  • 45,437
  • 7
  • 70
  • 103
0
votes
1 answer

How to migrate repositories from Perforce to GitHub using git p4 when the source repository path contains spaces

We are moving from Perfoce to GitHub and we are using git-p4 to migrate our solutions with full history. Some of the solutions however, have spaces in their source paths. e.g. //Development/Custom/Projects/API1/JOE SOAP/Proposal12345 Note the space…
0
votes
1 answer

What is the expected behavior for git-p4 submit, and how do I use this tool?

I am trying to migrate a Git repository into a subdirectory within a Perforce depot, where all history is maintained. I have been the only person working in this Git repository and haven't done anything non-trivial with the history. After many hours…
yxrkt
  • 424
  • 4
  • 12
0
votes
1 answer

git-p4 clone: after cloning, how to verify recursive file equivalence vs project in p4?

I've migrated a project in perforce to git with complete checkin/commit history. git p4 clone //path/to/project@all How can I verify that the newly cloned git repo has recursive file equivalence to the originating data in p4?
mlander
  • 51
  • 5
0
votes
1 answer

Unable to submit changes from local master to perforce depo using git-p4

I am Git user and having hard time with Perfoce submit so using git-p4 on Windows platform. I was able to clone and sync a depot on my local machine however unable to submit my changes on Perforce depot back using git-p4 submit. Since git-p4…
Mukesh Kumar
  • 333
  • 1
  • 5
  • 20
0
votes
2 answers

Using git-p4 to setup a git clone of a perforce client

I have a perforce client which maps several perforce paths into my local client. These perforce paths are for libraries and the main code line. How do I use git-p4 to setup a clone of the entire client in a separate directory? From what I see…
user231536
  • 2,661
  • 4
  • 33
  • 45
1 2 3
8
9