Code Monkey home page Code Monkey logo

skills-connect-the-dots's Introduction

Connect the dots in a GitHub repository

Useful tips when navigating through your repository.

Step 2: Find a commit in history

Thanks for the duplicate note 👋

An important part of version control is the ability to look into the past. By using git blame, and finding the story behind a commit, we're able to do more than blame people for code. We're able to see the story around why a commit was made. What is the associated pull request? Who approved the pull request? What tests were run on that commit before it was merged?

The obvious reason to find things in history is to know about the history. With issues and pull requests, we see a more complete story about the history, not just the bare minimum.

What's git blame?

git blame is a Git functionality that shows what revision and author last modified each line of a file. Information like who made a commit, when, and even why can be found this way. If you aren't sure who introduced certain changes to a file, you can use git blame to find out. While git blame sounds rather accusatory, this can be used to understand the context around decisions.

What's a Secure Hash Algorithm (SHA)?

A SHA is a reference to a specific object. In this case, it's a reference to a commit. On GitHub, you can look at a specific commit to see the changes introduced, by whom, and if they were a part of a pull request.

⌨️ Activity: Find commit in history

  1. Navigate to the Code tab of your repository
    • Tip: you may have previously created your repository in a new tab
  2. Click docs to navigate into the /docs directory
  3. Click _sidebar.md to view the file
  4. On the top of the file, click Blame to see the details of the most recent revision
  5. Click the commit message, add sidebar to documentation to see the commit details
  6. Copy the first seven characters of the SHA (the first 7 characters of the 40 character hexadecimal string listed after commit)
  7. Comment on issue #2 by adding the SHA from step 6 as a comment text and click on "Comment" button
  8. Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.

Get help: Post in our discussion boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License

skills-connect-the-dots's People

Contributors

tejasreeja avatar

Watchers

 avatar

skills-connect-the-dots's Issues

Fix the sidebar

GIVEN:

  • User opens _sidebar.md file

WHEN:

  • User navigates by clicking on [Documentation references] link

THEN (EXPECTED):

  • [Documentation references] page must be open successfully

OBSERVED:

  • File not found error OR GitHub reports HTTP 404 error (file not found)

Welcome

GIVEN:

  • User opens _sidebar.md file

WHEN:

  • User navigates by clicking on [Documentation references] link

THEN (EXPECTED):

  • [Documentation references] page must be open successfully

OBSERVED:

  • File not found error OR GitHub reports HTTP 404 error (file not found)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.