github-cli Questions

6

Solved

I have some trouble with the github repository I am working on. I just realised I am 3 commits ahead of main and wanted to push, but the terminal prompted the following: git push gh auth git-creden...
Magog asked 18/2, 2022 at 12:24

2

Solved

I'm trying to access another github repo with gh cli as a part of a workflow. I am using the gh release view command as below run: | echo "::set-output name=description::$(gh release view --r...
Lezlie asked 10/2, 2022 at 16:12

3

I am using GitHub CLI and MinGit for Windows. When I logout of GitHub CLI with gh auth logout and log back in with different account by calling gh auth login git config does not change. When I type...
Unblown asked 24/3, 2021 at 9:2

12

Solved

It seems like you have to interact with github.com to initiate a pull request. Is this so?
Playsuit asked 27/10, 2010 at 21:38

25

Solved

I created a new local Git repository: ~$ mkdir projectname ~$ cd projectname ~$ git init ~$ touch file1 ~$ git add file1 ~$ git commit -m 'first commit' Is there any git command to create a new ...
Conjunction asked 11/3, 2010 at 9:25

2

Use GitHub cli (gh), how do I get a current repo name? I can get a listing of the repos I have but how do I get the current repo?
Whatnot asked 22/3, 2022 at 13:27

1

I have configured my repository so that GitHub actions are able to approve PRs I have branch protection rule, requiring 1 approval before merging. However the following step fails - name: perfor...
Kurzawa asked 1/11, 2022 at 9:54

2

Solved

I code on my local machine, push it to my remote repository on github and then login via ssh on the target machine, pull it, build it and run it. This typically requires me to enter my login data e...
Redbird asked 6/8, 2022 at 9:42

3

Solved

I am currently working on a android project and I use github action to test the project. But whenever it build it ends up with an error for not finding the google-services.json file. The error gene...
Ara asked 3/1, 2022 at 16:23

4

Solved

I'm following the instructions on how to add an existing project to GitHub from GitHub docs. However, I get an 'gh' is not recognized as an internal or external command, operable program or batch f...
Oliva asked 27/8, 2021 at 10:29

1

I need to run some Github action on my repository, but the Web-UI gives me some trouble with branch selection. How can i run action by command line?
Olympe asked 29/12, 2022 at 8:16

2

I'm using the github cli (GH), and I have an already created repo, and a local git repo, is there a way to add a remote repo for that git repo using the gh cli?
Phonology asked 19/9, 2022 at 19:14

3

Trying to update the GitHub CLI with the apt package manager fails with this error: Failed to fetch https://cli.github.com/packages/dists/stable/InRelease: The following signatures couldn't b...
Donahue asked 4/9, 2022 at 14:41

2

I have followed the explanation here for setting up auto authentication of github on my CLI (on Linux, Ubuntu). In particular, I executed the command given here: gh auth login And then I answered ...
Menstruation asked 10/12, 2021 at 15:6

1

Goal: A jenkins pipeline that forks a repo, makes a change, pushes the change and generates a PR from master. My issue is that since this may run in parallel, I need each fork to have a unique name...
Coralloid asked 20/10, 2021 at 18:33

1

I'm looking for a Bitbucket tool that is similar to the GitHub CLI gh. I'm aware of the API, but that's not what I'm looking for. This tool is for the Bitbucket cloud version.
Aerodonetics asked 14/7, 2021 at 21:14

1

Solved

In a GitHub action, I create a file with a script. Then I can use git create a branch, add the file, commit the file and push the branch to the repo. All using git. I then want to create a PR from ...
Phyliciaphylis asked 16/12, 2021 at 5:32

3

Solved

What is the difference between git and GitHub CLI? Which one should I use, git or GitHub CLI or gh depending on the situation? For example, cloning a repository, both commands support it. What give...
Zircon asked 10/11, 2020 at 5:10

1

Solved

I just went into a github repo to get the ssh URL for it and all I see is the https one and the instructions to clone with github-cli. I know I can probably make up the ssh-one from the https one b...
Cristoforo asked 25/10, 2021 at 17:37

1

Solved

I am trying to figure out how to make a PR to my remote repository from a local branch (or even from local master/main branch). However, no matter what I do I get the following error: Attempt from ...
Arnaldo asked 16/11, 2020 at 5:34

2

Solved

I am trying to add users to a private Github repo within an organisation. Starting from this post, I've simply changed the API endpoint to cope with organizations (as explained here), and I end up ...
Neoma asked 15/10, 2020 at 12:24

2

Solved

How do you create a GitHub repository using GitHub CLI (vs having to go to github.com and creating a github repo from their GUI)?
Geilich asked 16/10, 2020 at 8:17

5

Solved

I'd like to use GitHub more from the command line and less through the web. Of course, everything related to Git repos can be done through the Git client. But I'd like to also do GitHub-spec...
Penetrating asked 6/1, 2011 at 0:4
1

© 2022 - 2024 — McMap. All rights reserved.