Questions tagged [github-hub]

hub is a command line tool designed by GitHub to make interacting with GitHub repositories more convenient than using git alone.

hub is a command line tool designed bit GitHub to make interacting with GitHub repos more convenient than using git alone.

Resources:

6 questions
2
votes
0 answers

how to create fad-in and fad-out video?

This command used to create fad in and fad out from : https://androidlearnersite.wordpress.com/2017/03/17/ffmpeg-video-editor/comment-page-1/#comment-150 String[] command = {"-y", "-i", file.getAbsolutePath(), "-acodec", "copy", "-vf",…
1
vote
1 answer

How do you create a pull request description with the GitHub hub cli tool?

I am doing this: pull_request() { local url="$1" local title="$2" local message=$(cat <<-END $title\n \n - [Story]($url) END ) echo $message local pr_url=$(hub pull-request -m "$message") open $pr_url } I want this to be in the…
Alien
  • 944
  • 2
  • 8
  • 22
0
votes
1 answer

How can I fork a repo and add as a remote with 'hub fork'?

hub fork help says: fork Make a fork of a remote repository on GitHub and add as remote Great, that's what I want to do. hub fork https://github.com/architect/functions Aborted: could not find any git remote pointing to a GitHub…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
0
votes
1 answer

How to post a message to the github api using hub api?

I want to use hub to create some automation script but can't figure out how to post a message to the api. More specifically it is this api endpoint I want to post to: https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key I've tried the…
Tomas Jansson
  • 22,767
  • 13
  • 83
  • 137
0
votes
1 answer

bash maintain old value for variable

I have this bash script that I want to duplicate a branch and make a PR to a remote repo using that duplicate branch then delete the duplicate branch: gPullRequest () { branch=$(git rev-parse --abbrev-ref HEAD) if [ $# -eq 0 ] then git…
Andrew Kim
  • 3,145
  • 4
  • 22
  • 42
0
votes
2 answers

How to set default remote origin for git repository?

I'm using hub to create a github repository in command, git create -d "Some description" But without asking me, it automatically add oldUser/repo.git as as remote, Since I'm no longer use oldUser as my github account, how can I change this default…
mko
  • 21,334
  • 49
  • 130
  • 191