Adding repository sync command

Fixes: #559