Gitting it right

If you find yourself with a Git setup that isn't what Numberscope requires (i.e. do your work in your own fork on a feature branch), you might be able to use this guide to fix your setup.

Here are the different scenarios you could find yourself in and what to do about them.

  • 1: You have a clone of the official Numberscope repository.
  • 2: You have a fork of a Numberscope repository.
    • 2.A: You haven't cloned anything.
    • 2.B: You cloned the official Numberscope repository.
      • Proceed with 1. above, except you won't need to create a fork on any step where it says you should.
    • 2.C: You cloned your fork.
      • Here you have a choice. You can either keep working this way, and add the official Numberscope repository as a remote (usually named upstream). Then in all other tutorials in our documentation where it says origin you would use upstream and where it says fork you would use origin.
      • Or, if that is too confusing, you could reconfigure to the recommended situation in which you clone the official repository and then add your fork as a remote. If you haven't made any changes, you can just delete your clone, and start again with 2.A. above.
      • If you have made changes, you will have to rearrange your remotes. Check your remotes. If you have a remote named fork that does not point to your fork (unlikely, but check just in case), remove that remote with git remote remove fork. Then add your fork as a remote named fork, even if it is already present as origin. Then execute git remote remove origin. Finally, add the standard Numberscope repository as a remote named origin. Then, you can proceed with 1.B. above, except skip any steps that instruct you to create a fork or add a remote.