Reputation: 21
I deleted a file in client work space. rm *.py. when i do a p4 sync -f , it is only refreshing the file how can i get back the file from server. Thanks, Rashmi
Upvotes: 2
Views: 2769
Reputation: 11
One reason this can happen is that you had already checked out those files. For example, if you checked out the whole directory and then delete it, p4 sync woudn't work as you expect. Run p4 revert and then p4 sync -f ... should work.
Upvotes: 1
Reputation: 11915
p4 sync -f is the right command.
Some things to check:
Are you syncing the right client? Does the client view include the file?
Upvotes: 4