diff --git a/app/views/how-tos/github-collaborate.html b/app/views/how-tos/github-collaborate.html new file mode 100644 index 0000000..270bd7f --- /dev/null +++ b/app/views/how-tos/github-collaborate.html @@ -0,0 +1,129 @@ +{% extends "layout.html" %} {% block pageTitle %} Collaborate on prototypes +using GitHub Desktop - NHS prototype kit {% endblock %} {% block beforeContent +%} {% include "how-tos/includes/breadcrumb.html" %} {% endblock %} {% block +content %} + +
+ When you store a prototype on GitHub, you can collaborate on your code + with anyone in your team. +
++ You can make a 'branch' (a separate version) so it doesn't affect anyone + else. +
+
+ When you are ready to suggest your changes, you can make a 'pull request'
+ to the main
branch. This will share your suggested changes
+ with the rest of the team for them to review.
+
+ If you are working on your own, you can make changes on
+ main
without using branches.
+
+ Make your changes to the prototype and save them in your code editor, then + you can share them by creating a 'pull request'. +
+GitHub Desktop will show you the files that have changed.
+Another member of the team should review the pull request on GitHub.
+ +They should:
+When they have approved the pull request:
++ When a pull request is merged, you'll need to update your version (also + called 'pulling' changes). +
+ ++ If 2 people edit the same file at the same time, it can sometimes cause an + error in GitHub called a conflict. +
++ If there is a conflict, you must manually resolve the change - ask a + developer on your team to help. +
++ GitHub is a way to store code online so you can collaborate with others. + It also makes it easier to publish your prototype online using a hosting + service. +
+ +Some concepts:
+Use GitHub Desktop to work with repositories. +
+A repository contains all of the files in a prototype. You can use the repository to view the file history and work on your prototype with others. +
+You can now:
+ + + +You can also find out about how to use GitHub Desktop on the GitHub website.
+ ++ To store your new prototype in GitHub, you need to + set up GitHub Desktop. +
++ You can work with others on an existing prototype. For example, if you're joining a team that has a prototype. +
+To work on an existing prototype, you'll need to download (or 'clone') the repository. +
+npm install
+ To store your new prototype in GitHub, you need to + set up GitHub Desktop. +
+ ++ You may get a warning saying that the directory does not appear to be a + Git directory - this is the correct process. +
++ Your prototype code is now on GitHub, which means other people can see and + collaborate on your code. +
+