-
Notifications
You must be signed in to change notification settings - Fork 6
3. Forking and Cloning codonPython
To be able to contribute code to the repository you must first fork the repository to your own area before you can start making changes. The instructions below will help you do this.
Requirements:
-
To practice forking a repository, follow these instructions first: https://help.github.com/en/github/getting-started-with-github/fork-a-repo
-
On your machine, change your current directory to your desired landing folder.
If using GitBash:
a) Open GitBash and enter cd <folder path>
to change the current directory to desired landing folder. Ensure that you change <folder path>
to your desired folder path.
OR
b) Navigate to your desired landing folder using file explorer then right click and select 'Git Bash here' to automatically set your current directory. For example this will open GitBash with the current directory set to C:/Documents/Training
If using anaconda prompt:
a) Activate your environment using the following code, replacing <my_env>
with whatever name you gave your environment. If you have no environment set up, follow these instructions.
conda activate <my_env>
b) Enter cd <folder path>
to change the current directory to desired landing folder. Ensure that you change <folder path>
to your desired folder path.
- On GitHub fork your own copy of the
codonPython
repository to your account by clicking the 'Fork' button on GitHub.
This will then appear as a repository in your own GitHub account. Navigate to it by:
a) Clicking your user icon in the top right hand corner of GitHub, then select 'Your Repositories'.
b) Select codonPython
- Select ‘Clone or download’ then copy the link.
- Type the following code into GitBash, pasting the link which you just copied to replace
<link>
.
$ git clone <link>
This will create a folder called 'codonPython' within the landing folder you specified above. This folder contains the entire contents of the repository and is an exact copy of the repository in its current state. Please note that you will not be in the cloned folder once you have cloned it. You will have to CD to the new folder or open bash within.
Please note that some images are blurred out as they contain personal/identifiable information.
If you have any issues then please email [email protected]
📧 Email us at [email protected] 🐦Find NHS Digital on Twitter 📘Check out the documentation for Codon