There is currently the assumption that the parent remote is named as upstream and the fork as origin. If the latter condition is not met, the script will fail.
Hence, there should be a condition which makes the script to smartly handle erroneous cases, so that the script always succeeds.
Logic is: if upstream contains my-github-username , swap upstream with origin.
Reference links
There is currently the assumption that the parent remote is named as
upstreamand the fork asorigin. If the latter condition is not met, the script will fail.Hence, there should be a condition which makes the script to smartly handle erroneous cases, so that the script always succeeds.
Logic is: if upstream contains my-github-username , swap upstream with origin.
Reference links