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
0
votes
1 answer

Where git-p4 save information about perforce depot

I'm performing migration from perforce to git using git p4. I need to keep sync my git repo with perforce server. I just need to know where does git-p4 store information about perforce depot after git p4 clone and later that use for git p4 sync.
0
votes
1 answer

Merging a remote .gitattribute file with local .gitattribute file with merging strategy union

I am working with git p4 rebase and git LFS. unfortunately after syncing the P4 contents to local git repo, it removes all the existing LFS tracked files from .gitattributes, and adds files to .gitattributes that were synced. example: Local and…
0
votes
2 answers

How do you sync files between perforce and git repos

I have a set of files in a Perforce project that get updated by users from time to time. I have a copy of those set of files in a directory in a separate Github project. I want to be able to automatically sync those files in my Github repo or my…
0
votes
1 answer

git p4 clone file history including integration history

tl;dr; I wish to retain the history for files migrated to git including the history from earlier integrations. i.e. git p4 clone such that git log --all --follow == p4 filelog -li Longer version: I have a project in perforce which…
Bruce Adams
  • 4,953
  • 4
  • 48
  • 111
0
votes
1 answer

git-p4 cloned repo contains mixed filename case -- how to fix?

I imported a large repo using git-p4, and discovered that I have some strangely mixed-case filenames, e.g.: dirA/DIRb/file1.txt and then other files like so: DIRa/dirB/FILE2.txt and so on. These get entered into the repo this way because git-p4…
0
votes
1 answer

What to do with git-p4 remote branches after migration?

I have a vague understanding of the meaning of refs/remotes/p4/master when migrating from P4 to Git (documentation isn't very clear about it, and I couldn't find an explanation here). According to git-p4 clone documentation: Imports the full…
traveh
  • 2,700
  • 3
  • 27
  • 44
0
votes
3 answers

Merging git hub repository with perforce depot

I have project A. The project A is in perforce as well as in github( Business decision). They are both out of sync. I see that I can use git-p4 tool http://git-scm.com/docs/git-p4 to submit git changes to perforce. Problem is first instruction of…
user2452057
  • 816
  • 2
  • 11
  • 23
0
votes
2 answers

git-p4 sync not working - mysterious stack trace

I'm trying to use git-p4 to clone perforce depot. I keep running into a problem in the git-p4 script, where git-p4 tries to access a dict key that is not defined and throws a trace. [~/p4/prod@ernie02] (master) $ git p4 sync --verbose…
masonk
  • 9,176
  • 2
  • 47
  • 58
0
votes
1 answer

Detect new branches with git-p4?

git-p4 is not creating new branches with git p4 sync. We are using branchList config entries (not Perforce branch specifications). I've added a new branch spec to the config, but git p4 sync --detect-branches is not adding the new branch. Is this a…
Bill Door
  • 18,272
  • 3
  • 32
  • 37
0
votes
1 answer

git p4 depot-path error

I have a problem setting up git with perforce using git-p4. After finishing all the steps from this excellent blog post: http://owenou.com/2011/03/23/git-up-perforce-with-git-p4.html, I try to add a new file/modify an existing file in the local git…
Wojciech Górski
  • 945
  • 11
  • 29
-1
votes
1 answer

git-p4 fails to clone repo while executing through ansible

I am running an Ansible master machine with a shell script which clones my repo to my local git server. I am cloning from Perforce and hence using git-p4 module for the same.…
Gaurav S
  • 121
  • 15
-1
votes
1 answer

How do I combine branches and flat directories with git p4?

How do I get a git directory structure that has both flat directories and branches using git-p4? Flat directories are directories that have never been branched. We have a some directories that have branches as well as regular directories in the same…
Bill Door
  • 18,272
  • 3
  • 32
  • 37
1 2 3
8
9