anshika sah
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Getting started with Git and GitHub for bioinformatics newbies (or any open scientist!) **-By Yo Yehudi** :::info Yo Yehudi is an Open Source Technical Lead in the Data for Science and Health priority area at the Wellcome Trust and also the co-founder of Open Life Science, which is an amazing organization promoting open science. Apart from it, she is an open science evangelist and an incredible mentor who has mentored and educated many learners through training workshops, programs like [Google Summer of Code](https://summerofcode.withgoogle.com/), [Outreachy](https://www.outreachy.org/), [Open Life Science](https://openlifesci.org/), [Hacktoberfest](https://hacktoberfest.digitalocean.com/), and many conferences like [BOSC](https://www.open-bio.org/events/bosc/), [MozFest 2018 Openness space wrangler](https://www.mozillafestival.org/), and many more. She was extremely kind to write a blog on getting started with GitHub for newbies. ::: Learning to use Git can be intimidating at first, but once you've learned to get comfortable with it, you'll wonder how you ever did without it. GitHub is an online hosting platform for Git version control which is quite popular, but most of these points apply to any online Git hosting service, such as [GitLab](https://about.gitlab.com/) or [BitBucket](https://bitbucket.org/). Each of these sections can be useful on their own, but over overall I'd recommend learning a little bit about git and how it works, spend some time working on test repos of your own, then perhaps spending some time contributing to others' repos. Once you're comfortable with all those, running your own project collaboratively on GitHub will come naturally. ## Why Git? - **Never lose work again**. No more `Copy 1_final(with revisions)USE_THIS.txt` filenames needed once you learn how to use version control. If you commit your work regularly, you can go back to any point in time easily, to when things last worked. - **Collaborative working** distributed version control like Git makes it easy to merge changes from multiple contributors, and GitHub has additional project management and issue management layers that help in tracking bugs, fixes, and planned features. - **Free backups** - push your work from your computer to GitHub and no need to worry if your computer is stolen or your hard disk fails. ## Awesome - how do I start? There are lots of different lessons online - you could try any of these self-taught/self paced resources: - Open Life Science's [GitHub lesson on YouTube](https://www.youtube.com/watch?v=Hj4kpy9LB6c) - The Turing Way's [Guide to Collaboration](https://the-turing-way.netlify.app/collaboration/collaboration.html) - Self-paced lessons on [Open Scientific Code using Git and GitHub](https://open-source-for-researchers.github.io/open-source-workshop/) that can also be used to deliver a class, using GitHub desktop. - The Carpentries: [Version control with Git](https://swcarpentry.github.io/git-novice/), using the command line If you keep an eye out, many of these organisations may also run tutorials online that you can sign up to for realtime teaching. ## Terminology Here's a quick glossary for some terms you may encounter whilst reading these lessons: - **Commit** - a single git "save" point, usually with a message about what's just been saved, e.g. "Fixed a typo" or "the header is red now not blue". - **Repository** the place where you store your code. a repository is made out of code and usually has multiple commits (possibly hundreds or thousands over time). - **Branch** - branches are optional, but they can be useful to make separate spaces for people to work on differnet things - so you might make a new "branch" to add a new feature to your code, allowing you to make commit saves without messing up the main branch. - **Merge** - when you have work from multiple people or multiple branches and you wish to combine them, this is known as a merge. - **Pull request** - a request from an external contributor to merge work. They're requesting that you pull their work into your repository. ## Contributing to someone else's repository If you're interested in contributing to someone else's repo, you have a few options. It's usually easier to contribute to some repos and harder to contribute to others, depending on if they've designed their repo for contributions. - **contributing.md** - if you're really lucky, there's already a guide - often named contributing.md - in the repo in question that will tell you how to get started. [Here's an example from Emma Karoune](https://github.com/EKaroune/Open-Science-in-Phytolith-Research/blob/master/contributing.md). Projects with contributing guides are expressly thinking about how to bring in new contributors so they're your best bet. - **Check the project issues and project boards** - the issues tab may have features or bugs that need to be worked on. Look especially for labels like "good first bug" or "first timers". If the detail on the issues isn't sufficient to understand what to do, take a look around and see if there are any docs that might tell you how to get started. Sometimes issues aren't well defined enough to be useful to a newbie - don't feel bad if this is the case, it's definitely not your fault. In fact, I've closed issues that _I've written myself_ saying "I clearly knew what I intended when I wrote this issue but have no idea what it means now." :laughing: - **Email / chat message the maintainers** - if the above two fail, you might still be able to help out if you contact the maintainers and offer your services. Few people turn down offers of help! - **Still stuck?** Sometimes people put their code online but are no longer able to maintain it, or don't have the time or inclination to curate and review new contributions. This happens all the time and will probably happen to you too if you end up using GitHub a lot! Don't feel bad if you can't figure out how to contribute, just move on to another repo, or make your own. ## Working on your own A few more tips for getting started on your own project. Remember that anything in your brain will get forgotten, so write clear readmes, clear contribution guides, etc. Also make sure to add a [licence](https://choosealicense.com/) so people are legally allowed to re-use your work - otherwise all the code that's online can be looked at but is illegal to re-use. Take a look at [opensource.guide](https://opensource.guide/) for more tips and good practices. At this point you may want to reflect a little on what you've learned from looking at and contributing to other people's repos - when you make projects that are online, open, and designed for contribution, it helps to create guides so that others know how to contribute and what culture your project has, what plans, etc. Every time you think "argghhh, I can't figure out how to do this" - make a note and make sure you make it easier to manage in your repo with clearer docs - or when someone asks for help whilst contributing to your work, treat them with a little sympathy as you'll remember what it was like when you were learning!

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully