Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (19.4k points)

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'?

1 Answer

0 votes
by (41.4k points)

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  

Also, check out this Git Tutorial to know more.

Browse Categories

...