I'm trying to use p4 sync to synchronize a specific directory with a given change list number using wildcards, but I also want to exclude the list of files that are in that directory (in subdirectories), I tried to use - (both before and after using the wildcard path ), but the file is never excluded, this command I'm trying:
p4 sync //Repo/Foo/... -//Repo/Foo/Bar/Foobar.txt
File exclusion only works when the files / directories you are syncing do not match the files you are trying to exclude.
source
share