0

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 repository

Well yes, that's because I want to make a fork of this repository on GitHub and add as remote, exactly as the help says.

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

JJJ
  • 32,902
  • 20
  • 89
  • 102
mikemaccana
  • 110,530
  • 99
  • 389
  • 494

1 Answers1

0

The syntax is:

$ hub fork --help
Usage: hub fork [--no-remote] [--remote-name <REMOTE>] [--org <ORGANIZATION>]                                           

Eg:

hub fork --remote-name https://github.com/architect/functions  
mikemaccana
  • 110,530
  • 99
  • 389
  • 494