Code Monkey home page Code Monkey logo

pull-request-challenge's Introduction

Pull-Request-Challenge

Newbie Coder Warehouse challenges you to get better acquainted with git and Github.

This challenge should only take you between 2 and 10 minutes to complete, depending on your familiarity with git and Github.

####Table of Contents

Required Materials for all Participants

  1. A Github account. To sign up, visit: https://github.com/join

That's it! :)

Git and Github Resources

####Which route to take? If you have little or no previous experience with git and Github, then take the beginner route.

If you have some experience with adding, committing, and pushing Github projects either locally or through an IDE, we recommend the Intermediate/Advanced route.

###Beginner Route

Knowledge/Experience

Some basic knowledge of git and github but not required.

Steps
  1. Go to the Pull-Request-Challenge Github Repository
  • If you reading this direction set from the README.md file, then you are in the repository.
  1. Click on the template.md document. (Note: this is the doc you will edit.)
    enter image description here
  2. After the template.md page loads, click on the "edit this file" button (to the left of the trash can)
    • The hover text will say "Fork this project and edit the file"
      fork and edit
    • Forking projects means that you have a version of this repository connected to your Github account. So basically you have the complete version of the challenge for you to change and send back to NCW for us to add your file (a copied version of template.md with your answers) to the project. Pretty cool huh?
  3. After the page loads, you'll see this:
    enter image description here Change the name of the file from the original 'template.md' to 'yourgithubusername.md'.
    enter image description hereThis will save a new file to the forked project and will be the file that you will do a pull request for us to merge together on the main NCW repository.
  4. Add your answers directly on this edit page
    enter image description here
  5. After adding answers, scroll down to the "Propose file change" section
    • In the first input field, enter "Add yourusername to the challenge" (but actually input your Github username.)
    • The body text text is optional. For this challenge, don't worry about putting anything in this area.
    • When finished, click on the green 'Propose file change' button
      enter image description here
  6. After the 'Comparing changes' page loads, click on "Create pull request"
    enter image description here
  • Note: This is a interesting area to focus on. Scroll down and see the changes you have made (highlighted in green) and the red is what has been deleted
  1. After the "Open a pull request" loads, you will see what you wrote before (In Propose file change) now in the commit section in the first input area. (Also, if you added anything in the body area, it will show up here as well)
    enter image description here
  • Click on "Create pull request"
  1. Challenge Complete!
    enter image description here
  • Wait (we will add your changes ASAP)

Back to top


Intermediate and Advanced Route

Materials

Knowledge/Experience

  • Basic knowledge of git and github such as add, commit, push, and pull.
  • Know what a Forked project is and how to work within it.
  • Familiar with working on a project locally or through and IDE

Steps

  1. Fork the project
    • In the repository, click on the fork button in the top right corner
    • This will make a copy of the project and connect it to your account
  2. Clone the forked version of the project to your local or IDE environment
    • Once the forked project loads, click the copy to clipboard button from the HTTPS clone url section
    • After you have the url to clone, go to you local or ide environment and run a git clone of the forked repository (code at bottom of this list)
    • Important: Make sure this is a forked copy of the repository, if the url doesn't have your username, you may not have forked properly. If you forked properly, you don't have to push the copy button. You can use the code below and insert your own github username.
    • git clone https://github.com/yourusername/Pull-Request-Challenge.git

  1. Make a new branch and name it your Github username

    • git checkout -b yourusername
  2. Copy/paste/rename the template.md file to your Github username

    • The template file should not be edited. A new copy of the template.md file with your username will make it easier to merge into the repository.
  3. Answer the questions and save it

  4. Commit the changes

    • git add -A
    • git commit -m "Add yourusername to the challenge"
  5. Push the branch of the forked repository

    • git push origin yourusername
  6. Submit a pull request from your forked github repository

[Back to top](#pull-request-challenge)

The end! :) Make sure to "star" the repo if you enjoyed this challenge.

pull-request-challenge's People

Contributors

rxsharp avatar genavievemarie avatar jessvoneuw avatar dev-diva avatar rattana-p avatar rustyhaley avatar

Forkers

alexraby

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.