From e1d1f2152557e007d1c27890d8430996c0eb7eeb Mon Sep 17 00:00:00 2001 From: Azeem Sajid Date: Thu, 30 Jan 2025 12:38:50 +0500 Subject: [PATCH] [gh repo view] Improve error message for forked repo --- context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index 06ef8ca7d..e3b84e6b1 100644 --- a/context/context.go +++ b/context/context.go @@ -105,7 +105,7 @@ func (r *ResolvedRemotes) BaseRepo(io *iostreams.IOStreams) (ghrepo.Interface, e fmt.Fprintln(io.Out) return nil, errors.New( - "please run `gh repo set-default` to select a default remote repository.") + "please run `gh repo set-default` to select a default remote repository.\nTo learn more about the default repository, run: gh repo set-default --help") } func (r *ResolvedRemotes) HeadRepos() ([]*api.Repository, error) {