Code Monkey home page Code Monkey logo

github-workflow-exercise's Introduction

Exercise: GitHub Workflow

Goal of this Exercise:

  1. Simulate making code changes on projects and homework
  2. Get comfortable with pushing commits to GitHub repo
  3. Understanding of how to submit HW via Pull Requests

Exercise Steps:

  1. Make at least 3x different changes to the code in this repo
  2. Make sure to COMMIT these changes each time (so 3x different commits)
  3. Push each of these changes up to your fork
  4. At the end, make a final, single Pull Request to the upstream (original) repo

Bonus:

Now that you understand Git workflow better, pull down + submit some more changes to your Google Clone homework repo

Before you start:

Make sure to have GitHub Desktop installed https://desktop.github.com/

Getting Started

  1. Fork this repository to create a copy of it on your GitHub account (only do this the first time)
  2. Navigate to your forked exercise repository
  3. Click "Clone or Download" (green button)
  4. Select "Open in Desktop" - you should have the Desktop app installed before doing this
  5. Follow the instructions to download the repo to your computer
  6. Have fun coding!

screenshot

If you already have the code installed on your computer

you can simply open that project folder in GitHub Desktop

screenshot

Committing your Code (GitHub Desktop)

  1. In GitHub Desktop - it should show all your code changes already. Make sure to commit your changes (section in the bottom left) with a summary description

desktop-1

  1. After committing, the center navigation should be clear
  2. Click "Push Origin" on the top

desktop-2

  1. Now your work is saved to your GitHub repo - great job!
  2. You can always "push your code" to your repo so that it's accessible anywhere you have Internet

Making a Pull Request

Pull Requests are a way for programmers to submit code change suggestions to an upstream repository

  • In our case, the upstream = class repo
  • Forked repo = your working repo (or the "origin")

In this class, we'll be using PRs to submit homework, where instructors can check + comment your work

  1. Open a Pull Request (from your fork) screenshot

  2. Make sure all details are correct screenshot

  3. Press "Create Pull Request" - your instructors will reach out if there are any issues! Good work!

github-workflow-exercise's People

Contributors

calculon0 avatar omarpablo427 avatar parkedwards avatar

Watchers

 avatar

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.