Store a new prototype on GitHub - Store code online with GitHub and GitHub Desktop
If you have made a new prototype (for example, after finishing our basic prototype tutorial), you will need to store it online to share it with other people.
To do these tasks, you must have set up GitHub Desktop.
Add the prototype on your computer to GitHub
- In GitHub Desktop, select Add an Existing Repository. If it's not on the screen, click the File menu and select Add Local Repository.
- Click the Choose button and select your prototype folder.
If Github Desktop shows a warning
You may get a warning saying that the directory does not appear to be a Git directory. This is the correct process.
- In the warning, click the Create a repository link.
- On the next screen, titled Create a repository, click the Create repository button.
If you work for NHS England, make sure that your repository is part of one of the official accounts and not in an account with your username. Ask your development team or technical leadership where you should store it.
Upload your prototype to GitHub
- In the top right, click Publish repository.
- Usually we want other people to be able to view and collaborate on our prototype, so make sure that Keep this code private is not ticked. Check with your team if you're not sure.
- Click Publish repository.
Your prototype code is now on GitHub, which means other people can see and collaborate on your code.