Cali0707 / git-utils

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

Add cases for repos that has main branch named "master" in upstream for git sync #11

Closed inesqyx closed 1 year ago

inesqyx commented 1 year ago

Currently, the script only works for users who interact with upstreams whose main branches are also named "main". However, if the main branches in their upstreams happen to be something else (i.e. master), the script will no longer work. Considering, there are a wide range of repos that named their main branches as "master"., there is a strong call for include this case in the automated script.

Cali0707 commented 1 year ago

Thanks for reporting this @inesqyx !!