Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 2.51 KB

File metadata and controls

67 lines (46 loc) · 2.51 KB

Exercise 02: Version Control with Git

Creating a dev branch and staging/committing changes

  1. Access your dev environment through GitPod:
    • Navigate to https://app.gitpod.io/
      • If needed, select "Continue with GitHub", authorize Gitpod to access your GitHub account, and sign in with your credentials
    • In the Northeast-SDP4PHB-2025 the existing environment at the bottom of the right-side column
    • Restart the environment
    • Click on the "Open with VS Code" button

  1. Currently, you should be working within the main branch of this repo, but this is a protected branch to which we cannot commit direcly. Instead, a dev branch must be created and PR issued to push changes to main. To do this:
    • Use VSCode to create a dev branch by clicking "main" in the bottom left corner, naming your branch in the text box that appears (e.g. im-gc-count-dev) and selecting "Create new branch".

  • Click the push icon in the bottom-left corner of your VSCode interface to publish this branch to the remote repository.

  1. From your newly created dev branch, use the VSCode interface to stage the changes you made to fastq-peek.sh which add the gc-percentage calculation and reporting.

  1. Commit these changes with a comment, e.g. adding gc-percentage calculation and reporting.

  1. Use the Sync Changes button that appears to publish this branch to the remote repository.

Openning a Pull Request

  1. Navigate to the remote repository on GitHub and select your dev branch

  1. Use the "Contribute" dropdown menu to open a pull request

  1. Complete the PR form for this repository and create the pull request

Note: Check-list items can be selected by adding an X between the brackets in markdown, e.g. [X], or after the PR is created using the web interface.