Cali0707 / git-utils

A collection of useful git tools
Apache License 2.0
4 stars 3 forks source link

Added checkout of main branch if not exists #19

Closed Cali0707 closed 1 year ago

Cali0707 commented 1 year ago

Fixes #15

Currently if there is no copy of the branch referred to by HEAD locally, the git sync command will work but will throw a whole bunch of warnings at you (it won't know whether to check out upstream/main or origin/main for example). So, we should check if there is a copy locally, and check it out if there is not

Leo6Leo commented 1 year ago

/lgtm /approve