I have a Git repository inited from "git p4 clone" command, and its folder structure is as below:
.git
folder A
folder B
fileA
fileB
Folder A and folder B are cloned from Perforce with "git p4 clone" command, and fileA and fileB are added to Git after clone.
Not I would like to use "git p4 submit" to sync Git commits to Perforce, and the problem appears. Since fileA and fileB are not from Perforce and there is no view mapping for the root folder in P4 client view configuration, the attempt to apply the patch which creating these two files in Git always fails: error: fileA: already exists in working directory error: fileB: already exists in working directory
Even bad that the commit is the first one I made in Git repository, now each time I try to run "git p4 submit", it starts from this unsubmittable commit and tries every commit after it. I tried to add these two files to .git/info/exclude but no help.
So my question is: is there any way to tell "git p4 submit" ignoring some files, or ignoring specific git commit? Thanks in advance.