Open
Description
The current performance is not good enough, it takes time to check and sync.
I guess we can improve its performance by:
git checkout #{branch} -b #{branch}
And use current branch with desired branch to compare if we need to update when they're different.
Currently, we use ref to check, I guess it's the cause of slowness.