Skip to content

3. Forking and Cloning codonPython

Warren Davies edited this page Feb 16, 2023 · 2 revisions

Forking the repository

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:

  • GitHub account
  • Git installed on your machine
  1. To practice forking a repository, follow these instructions first: https://help.github.com/en/github/getting-started-with-github/fork-a-repo

  2. 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.

example of changing directory

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

Image of using Git Bash here

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>

conda-activate

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.

conda-cd

  1. On GitHub fork your own copy of the codonPython repository to your account by clicking the 'Fork' button on GitHub.

Fork button

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

Image of forked repository

  1. Select ‘Clone or download’ then copy the link.

Nickie-clone-2

  1. 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.

example of cloning repo and folder created

Please note that some images are blurred out as they contain personal/identifiable information.

If you have any issues then please email [email protected]

Clone this wiki locally