If you want to synchronize a local directory with a bucket or vice versa, you can do that with the gsutil rsync command.
For example, to make gs://example-bucket match the contents of the local directory local-dir you can use:
gsutil -m rsync -r local-dir gs://example-bucket
If you use the rsync -d flag, it signals gsutil to delete files at the destination (gs://example-bucket in the command above) that aren't present at the source (local-dir).
Hope this helped!!
To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.
Thank you!