update module4.ipynb

This commit is contained in:
Yavuz Sava 2025-03-08 12:01:09 +03:00
parent 8a5f3f168c
commit 70158f4280

View File

@ -4,14 +4,155 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# The Typical Pull Request Workflow on GitHub"
"# 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**<svg aria-labelledby=\"cds-react-aria1005828919-:rjv:-title\" fill=\"none\" focusable=\"false\" height=\"16\" role=\"img\" viewBox=\"0 0 20 20\" width=\"16\" class=\"css-8blerm\" id=\"cds-react-aria1005828919-:rjv:\"><title id=\"cds-react-aria1005828919-:rjv:-title\">Opens in a new tab</title></svg>](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 <bluekale@example.com>\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 <bluekale@example.com>\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"
"# Updating an Existing Pull Request\n",
"\n"
]
},
{