linux:p4
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| linux:p4 [2026/11/06 11:03] – user01 | linux:p4 [2026/11/06 11:05] (当前版本) – [5. p4 add] user01 | ||
|---|---|---|---|
| 行 117: | 行 117: | ||
| 添加文件到p4 changelist, 然后通过p4 submit命令就可以上传到p4。 | 添加文件到p4 changelist, 然后通过p4 submit命令就可以上传到p4。 | ||
| - | 这个跟git有点类似。 | ||
| 行 124: | 行 123: | ||
| 可以理解是git add命令。 | 可以理解是git add命令。 | ||
| - | ## - p4 revert | ||
| - | 将已经放入p4 changelist,但是还没有p4 submit的文件,回退到修改前的版本。 | ||
| - | |||
| - | |||
| - | ```bash | ||
| - | p4 revert xxxx_file | ||
| - | ``` | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ```bash | ||
| - | p4 revert //... | ||
| - | |||
| - | Revert every file you have open, in every one of your pending changelists, | ||
| - | |||
| - | p4 revert -c default //... | ||
| - | |||
| - | Revert every file open in the default changelist to its pre-opened state. | ||
| - | |||
| - | p4 revert -n *.txt | ||
| - | |||
| - | Preview a reversion of all open .txt files in the current directory, but don't actually perform the revert. | ||
| - | |||
| - | p4 revert -c 31 *.txt | ||
| - | |||
| - | Revert all .txt files in the current directory that were open in changelist 31. | ||
| - | |||
| - | p4 revert -a | ||
| - | |||
| - | Revert all unchanged files. This command is often used before submitting a changelist. | ||
| - | ``` | ||
| ## - p4 diff | ## - p4 diff | ||
linux/p4.1793934225.txt.gz · 最后更改: 由 user01
