Git Access#
GitHub is used as the primary resource for storing design files and code used within the research group. In order to access the group’s private repositories:
Create a GitHub account on GitHub.
Email the administrator and provide your account username.
You will then be added to the lab organisation within GitHub and have read access to the repositories.
Downloading repositories#
Make sure Git is installed on your local machine
Create a local copy of the repository using the command
git clone <url-to-repository>
on the command line.(Optional) Alternatively you can use a GUI client such as GitHub Desktop.
Making changes#
Additions, changes and updates to the existing repositories are encouraged. In order to submit a change to a repository you should:
Fork the repository using through GitHub. This will create a copy of the repository under your own GitHub account.
Clone the forked repository to your local PC.
git clone <url-to-repository>
.Make the changes to the repository (source code edits, design file changes etc.). Ensure that any modifications contain sufficient comments particularly in the case of source code changes.
Commit the changes to the repository adding a summary of your changes to the Git commit message using
git commit -m 'my-message'
.Submit a pull request through GitHub. This will alert the repository administrator that a change is being proposed and highlights the changes being made.
The administrator will review the pull request and will merge your changes into the original base repository. Everyone in the group will then be able to access your changes.
Updates to software and hardware designs can be easily accessed by the group.