{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# The Typical Pull Request Workflow on GitHub\n", "\n", "This reading contains the code used in the instructional videos from [**The Typical Pull Request Workflow on GitHub**Opens in a new tab](https://www.coursera.org/learn/introduction-git-github/lecture/8mpDb/the-typical-pull-request-workflow-on-github)\n", "\n", "## Introduction\n", "\n", "This follow-along reading is organized to match the content in the video that follows. It contains the same code shown in the next video. These code blocks will provide you with the opportunity to see how the code is written and can be used as a reference as you work through the course. \n", "\n", "You can follow along in the reading as the instructor discusses the code or review the code after watching the video.\n", "\n", "```bash\n", "git clone https://github.com/redquinoa/rearrange.git\n", "```\n", "\n", "**Code output:** \n", "\n", "Cloning into 'rearrange'...\n", "\n", "remote: Enumerating objects: 9, done.\n", "\n", "remote: Counting objects: 100% (9/9), done.\n", "\n", "remote: Compressing objects: 100% (7/7), done.\n", "\n", "remote: Total 9 (delta 1), reused 9 (delta 1), pack-reused 0\n", "\n", "Unpacking objects: 100% (9/9), done.\n", "\n", "```bash\n", "cd rearrange\n", "\n", "ls \\-l\n", "```\n", "\n", "**Code output:** \n", "\n", "total 20\n", "\n", "\\-rw-rw-r-- 1 user user 11357 Jan 7 09:42 LICENSE\n", "\n", "\\-rw-rw-r-- 1 user user   211 Jan 7 09:42 rearrange.py\n", "\n", "\\-rw-rw-r-- 1 user user   762 Jan 7 09:42 rearrange\\_test.py\n", "\n", "```bash\n", "git log\n", "```\n", "\n", "**Code output:** \n", "\n", "commit 367a127672c40a163a6f05ad930f2b0b857dc961  (HEAD -> master, origin/master, origin/HEAD)\n", "\n", "Author: Blue Kale \n", "\n", "Date:   Mon Jul 29 21:21:53 2019 +0200\n", "\n", "    Add tests for the rearrange module\n", "\n", "commit c89805e52a1afa143c503f946cc5ead0fdd20255\n", "\n", "Author: Blue Kale \n", "\n", "Date:   Mon Jul 29 21:20:57 2019 +0200\n", "\n", "    Add the rearrange module\n", "\n", "commit f4ddbc7a0ca3ac83a7e9ce7030e774b58e5dda42\n", "\n", "Author: Blue Kale <53440916+blue-kale@users.noreply.github.com>\n", "\n", "Date:   Mon Jul 29 16:07:42 2019 -0300\n", "\n", "    Initial commit\n", "\n", "```bash\n", "git checkout \\-b add\\-readme\n", "```\n", "\n", "**Code output:** \n", "\n", "Switched to a new branch 'add-readme'\n", "\n", "```bash\n", "git atom README.md \n", "\n", "Rearrange\n", "\n", "\\=========\n", "\n", "This module is used for rearranging names. \n", "```\n", "\n", "```bash\n", "git add README.md\n", "\n", "git commit \\-m 'Add a simple README.md file'\n", "```\n", "\n", "**Code output:** \n", "\n", "\\[master 736d754\\] Add a simple README.md file\n", "\n", " 1 file changed, 4 insertions(+)\n", "\n", " create mode 100644 README.md\n", "\n", "```bash\n", "git push \\-u origin add\\-readme\n", "```\n", "\n", "**Code output:** \n", "\n", "Username for 'https://github.com': redquinoa\n", "\n", "Password for 'https://redquinoa@github.com': \n", "\n", "Enumerating objects: 4, done.\n", "\n", "Counting objects: 100% (4/4), done.\n", "\n", "Delta compression using up to 4 threads\n", "\n", "Compressing objects: 100% (3/3), done.\n", "\n", "Writing objects: 100% (3/3), 400 bytes | 400.00 KiB/s, done.\n", "\n", "Total 3 (delta 0), reused 0 (delta 0)\n", "\n", "remote: \n", "\n", "remote: Create a pull request for 'add-readme' on GitHub by visiting:\n", "\n", "remote:      https://github.com/redquinoa/rearrange/pull/new/add-readme\n", "\n", "remote: \n", "\n", "To https://github.com/redquinoa/rearrange.git\n", "\n", " \\* \\[new branch\\]      add-readme -> add-readme\n", "\n", "Branch 'add-readme' set up to track remote branch 'add-readme' from 'origin'." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Updating an Existing Pull Request\n", "\n", "This reading contains the code used in the instructional videos from [**Updating an Existing Pull Request**Opens in a new tab](https://www.coursera.org/learn/introduction-git-github/lecture/aRZ95/updating-an-existing-pull-request)\n", "\n", "## Introduction\n", "\n", "This follow-along reading is organized to match the content in the video that follows. It contains the same code shown in the next video. These code blocks will provide you with the opportunity to see how the code is written and can be used as a reference as you work through the course. \n", "\n", "You can follow along in the reading as the instructor discusses the code or review the code after watching the video.\n", "\n", "```bash\n", "atom README.md\n", "\n", "Rearrange\n", "\n", "\\=========\n", "\n", "This module is used for rearranging names. \n", "\n", "Turns \"LastName,FirstName\" into \"Firstname LastName\"\n", "\n", "# Example\n", "\n", "Calling \\`rearrange\\_name(\"Turing, Alan\")\\` will return \\`\"Alan Turing\"\\`\n", "```\n", "\n", "```bash\n", "git commit \\-a \\-m 'Add more information to the README'\n", "```\n", "\n", "**Code output:** \n", "\n", "\\[add-readme 01231b0\\] Add more information to the README\n", "\n", " 1 file changed, 5 insertions(+)\n", "\n", "```bash\n", "git push\n", "```\n", "\n", "**Code output:** \n", "\n", "Username for 'https://github.com': redquinoa\n", "\n", "Password for 'https://redquinoa@github.com': redquinoa\n", "\n", "Enumerating objects: 5, done.\n", "\n", "Counting objects: 100% (5/5), done.\n", "\n", "Delta compression using up to 4 threads\n", "\n", "Compressing objects: 100% (3/3), done.\n", "\n", "Writing objects: 100% (3/3), 407 bytes | 407.00 KiB/s, done.\n", "\n", "Total 3 (delta 1), reused 0 (delta 0)\n", "\n", "remote: Resolving deltas: 100% (1/1), completed with 1 local object.\n", "\n", "To https://github.com/redquinoa/rearrange.git\n", "\n", "   736d754..01231b0  add-readme -> add-readme" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Squashing Changes" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Study guide: Git forks and pull requests" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# How to Use Code Reviews in GitHub" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# More Information on Code Reviews" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Tracking Issues" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Integrating git and GitHub" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# GitHub Project Management Tools" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Additional Tools" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Glossary terms from module 4" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Exemplar: Push local commits to GitHub" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# IT skills in action" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Tailor your resume" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Create a resume and add your new skills" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Add your job experience to your resume" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Writing a Cover Letter" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Course 3 glossary" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.12.3" } }, "nbformat": 4, "nbformat_minor": 2 }