來自GIT和SVN背景,我已經在Windows中設置了我的P4V,設法將我的存儲庫的內容放入我的本地文件夾(不知何故),但是一旦我修改並在我的本地文件夾中創建新文件,我不能將它提交給Perforce。它給出的錯誤:Perforce錯誤 - 無法從非流客戶端提交
//depot/main/p4config.txt - 警告:不能從非流客戶端提交 沒有文件提交。 提交失敗 - 修復上面的問題,然後使用'p4 submit -c 6'。
我車廠層次:
C:\Perforce\kernelpanic\main>p4 client -S //depot/main -o
# A Perforce Client Specification.
#
# Client: The client name.
# Update: The date this specification was last modified.
# Access: The date this client was last used in any way.
# Owner: The user who created this client.
# Host: If set, restricts access to the named host.
# Description: A short description of the client (optional).
# Root: The base directory of the client workspace.
# AltRoots: Up to two alternate client workspace roots.
# Options: Client options:
# [no]allwrite [no]clobber [no]compress
# [un]locked [no]modtime [no]rmdir
# SubmitOptions:
# submitunchanged/submitunchanged+reopen
# revertunchanged/revertunchanged+reopen
# leaveunchanged/leaveunchanged+reopen
# LineEnd: Text file line endings on client: local/unix/mac/win/share.
# ServerID: If set, restricts access to the named server.
# View: Lines to map depot files into the client workspace.
# Stream: The stream to which this client's view will be dedicated.
# (Files in stream paths can be submitted only by dedicated
# stream clients.) When this optional field is set, the
# View field will be automatically replaced by a stream
# view as the client spec is saved.
#
# Use 'p4 help client' to see more about client views and options.
Client: kernelpanic
Update: 2012/10/04 15:35:16
Access: 2012/10/04 15:59:39
Owner: me.kernelpanic
Host: kernelpanic
Description:
Created by me.kernelpanic.
Root: C:/Perforce/kernelpanic
Options: noallwrite noclobber nocompress unlocked nomodtime normdir
SubmitOptions: submitunchanged
LineEnd: local
View:
//depot/... //kernelpanic/...
//depot/main/doc/... //kernelpanic/main/doc/...
//depot/* //kernelpanic/*
//depot/main/* //kernelpanic/main/*
如果可能的話,我想補充文件在C:\ Perforce公司\內核錯誤\主\ SRC以及... 請幫幫忙,我不能瞭解Perforce。我試着在修改之前或之後進行檢查,但兩種方法都無法將更改提交到服務器。我很想堅持GIT,但我們的客戶使用Perforce,所以我們必須與他們打好關係。非常感謝你的幫助!
你如何提交?從P4V或命令行?你的文件在哪裏?看起來你正在嘗試提交更改列表中沒有文件。 – ChrisF
順便說一下,Perforce剛剛發佈了'Git Fusion',這是一款新產品,可以讓您克隆用於存儲在Perforce服務器中的文件的git repo。還有git-p4。這些都可能讓你堅持使用git,至少在你的最後。 – user1054341
@ChrisF:我已經嘗試了P4V和命令行,兩者都不起作用。我的問題就像user1054341提供的答案。可悲的是,我不明白perforce和無法弄清事情 – Zennichimaro