How do you fork your own repository on GitHub?

I don’t think you can fork your own repo. Clone it and push it to a new repo is good but you need to: git clone https://github.com/userName/Repo New_Repo cd New_Repo git remote set-url origin https://github.com/userName/New_Repo git remote add upstream https://github.com/userName/Repo git push origin master git push –all (see git push) See the all process described … Read more

npm install and build of forked github repo

Try npm install <ghusername>/<repoName>, where <ghUsername> is your GitHub username (without the @) and <repoName> is the name of the repository. That should correctly install it. You will most likely want to use the –save or –save-dev flag with the install command to save dependency in your package.json. If that isn’t working correctly, check the … Read more

Are Git forks actually Git clones?

Fork, in the GitHub context, doesn’t extend Git. It only allows clone on the server side. When you clone a GitHub repository on your local workstation, you cannot contribute back to the upstream repository unless you are explicitly declared as “contributor”. That’s because your clone is a separate instance of that project. If you want … Read more

How to do a GitHub pull request

(In addition to the official “GitHub Help ‘Using pull requests’ page”, see also “Forking vs. Branching in GitHub”, “What is the difference between origin and upstream in GitHub”) Couple tips on pull-requests: Assuming that you have first forked a repo, here is what you should do in that fork that you own: create a branch: … Read more