google / google/git-appraise

No fallback to `main` when no master branch exists.

Open
#119 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
5.3k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

New user here. When starting work on a project that uses `main` as the main branch name, there is no help or fallback for this error:

```
$ git appraise request
fatal: 'refs/heads/master' - not a valid ref
```

I had to read the code to figure out that `-target` is the needed option, but, that should really be a fallback mechanism, or, alternatively, the error comment should tell me that if I want this by default, I can do this through a specified (full example as best as possible) `git config` command to make this the default for this repo.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.