Skip to content

newfork.sh - github does not support self fork, you can still create one easily with this bash script

License

Notifications You must be signed in to change notification settings

dszakal/newfork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

newfork

newfork.sh - github does not support forking your own projects or forking a project more than once with the same account. But you can still create any number of forks easily with this bash script This is practically an automation of the solution suggested as a top answer here: http://stackoverflow.com/questions/10963878/how-do-you-fork-your-own-project-on-github

usage:

    ### first create via the web ui of github the something/newfork repository as an empty one, then:
    cd path/to/my_dev_projects_folder/
    git clone git@github.com:dszakal/newfork.git
    chmod +x ./newfork/newfork.sh
    ./newfork/newfork.sh git@github.com/something/projecttofork.git git@github.com/something/newfork.git

Only ssh git@github.com urls are supported, no https

Optional maintenance - merging back from upstream master (the one you forked from) to origin master (your project after fork):

    git fetch upstream
    git merge upstream/master
    git push    

About

newfork.sh - github does not support self fork, you can still create one easily with this bash script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages