how to commit changes and sync