Questions tagged [github-cli]

The Github CLI ("gh") is a tool for interacting with your repositories on Github straight from the command line.

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal.

Useful links:

184 questions
1
vote
1 answer

How to install gh CLI library using conda's environment.yml?

According to the gh instructions, we can install the gh cli via conda using: conda install gh --channel conda-forge. I wonder if there is way to include it in the environment.yml file? So that I can auto install the packages while setting up the…
WenliL
  • 419
  • 2
  • 14
1
vote
1 answer

Using github CLI (cli/cli) to deploy repo

Trying to deploy internal development from GitHub to a Centos 7 webserver, running into 2 issues. Firstly, I'm using PHP and need to deploy the class files to a folder that is not /var/www/html/, where I have cloned the repository to using cd…
Tom
  • 21
  • 1
  • 5
1
vote
0 answers

How do I mark a GitHub repo as a template repo using the GitHub cli?

I want to create a new repo using the GH cli tool. I want to mark the repo as a template repo. NOTE: I'm not trying to create a repo from a template, but rather create the repo AS a template. I'm not finding settings in the cli tool for this…
cdarrigo
  • 964
  • 1
  • 8
  • 26
1
vote
1 answer

How to reassign a pull request on GitHub to a different user using command line?

I am using hub by github to create pull requests from command line. I even assign the pull request to a user using the command line. However, I don't understand how do I reassign a pull request that was already created via the command line to a…
Eyal Gerber
  • 1,026
  • 10
  • 27
1
vote
1 answer

Github CLI - Unable to find remote helper for 'https'

Github CLI is throwing the following error when I try to make a PR from the command line. fatal: Unable to find remote helper for 'https' exit status 128 I've tried the steps on this question and git clone works fine for me. I'm also able to see…
1
vote
1 answer

How to capture github-cli pr list

In a shell script I would like to capture result of output=$(gh pr list --search "review:required user-review-requested:@me") echo "output : $output" unfortunately output is empty. I tried to set pager but failed to do it properly. gh config set…
Tyteck
  • 135
  • 2
  • 12
1
vote
1 answer

Is it possible to change, clone directory, when creating repo using GitHub CLI?

I use PyCharm to work on my Python projects, and I use the standard procedure of creating the project Open Pycharm -> New Project -> Specify the Location -> Specify "New Virtualenv environment" -> Create Now from this directory, I use GitHub CLI to…
CodingRaz
  • 123
  • 8
1
vote
1 answer

Is there a cli equivalent of Github cli for Bitbucket?

I'm looking for a Bitbucket tool that is similar to the Github cli. I'm aware of API, but that's not what I'm looking for. This tool is for the Bitbucket cloud version.
Sanjay Pant
  • 90
  • 1
  • 8
1
vote
2 answers

`gh cli` fails `git@github.com: Permission denied (publickey)` but no problem with `gh desktop`

I'm a bit ashamed to admit that so far I used github desktop and I'm now determined to try using gh cli I installed following the documentation sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 sudo apt-add-repository…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
1
vote
2 answers

GitHub CLI - Get current version

I'm trying to find a command that will show me the current running version of GH CLI. Right now yes, there is only 1 version (1.0) but in the future, we are going to need to know what version is being run for debug purposes (I'm currently writing…
Fredy31
  • 2,660
  • 6
  • 29
  • 54
1
vote
1 answer

Can I create remote github repo without local one with gh cli?

I know gh cli creates a local and remote repo with gh repo create. But I created and worked on my local repo with git init and so on. Then I want to create a remote repo and add that remote repo to my local one just to push it. So if I use gh repo…
mrcbns
  • 73
  • 1
  • 6
1
vote
1 answer

"could not read Username error" when using github CLI in google colab

I installed the new github CLI in google colab (https://colab.research.google.com/) and authorised. !sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 !sudo apt-add-repository https://cli.github.com/packages !sudo apt…
Hugo
  • 51
  • 1
  • 8
1
vote
1 answer

Git Clone - Download the repository without keeping git

I want to bring a couple of plugins into WP and make a script that just fetches them from github within an NPM script. "installplugins": "cd ../../ && rm -r mu-plugins && mkdir mu-plugins && gh repo clone repo1 mu-plugins && gh repo clone repo2…
Fredy31
  • 2,660
  • 6
  • 29
  • 54
1
vote
1 answer

Does cloning a repo using Github CLI use HTTPS or SSH?

I am a member of a GitHub org that requires pushes to be done through SSH, so when I clone down repos I need to use the syntax git clone git@github.com:/.git. I am migrating over to using the GitHub CLI more and more now, and have just…
James Whiteley
  • 3,363
  • 1
  • 19
  • 46
1
vote
1 answer

How to open a pull request on github for an improvement in a bitbucket fork?

I cloned a github repository into our Bitbucket account. Similar to https://gist.github.com/sangeeths/9467061. I fixed a bug in my repository located in bitbucket. I'd like to open a pull request on the original github repository that fixes the…
Lorenz Meyer
  • 19,166
  • 22
  • 75
  • 121