update module1.ipynb

This commit is contained in:
Yavuz Sava 2025-03-04 18:12:40 +03:00
parent 2ff2fa085a
commit 3a26f9e7fb

View File

@ -1058,7 +1058,78 @@
{
"cell_type": "markdown",
"metadata": {},
"source": []
"source": [
"# Anatomy of a Commit Message\n",
"\n",
"This reading contains the code used in the instructional videos from [**Anatomy of a Commit Message**<svg aria-labelledby=\"cds-react-aria6078214324-:rct:-title\" fill=\"none\" focusable=\"false\" height=\"16\" role=\"img\" viewBox=\"0 0 20 20\" width=\"16\" class=\"css-8blerm\" id=\"cds-react-aria6078214324-:rct:\"><title id=\"cds-react-aria6078214324-:rct:-title\">Opens in a new tab</title></svg>](https://www.coursera.org/learn/introduction-git-github/lecture/mhymc/anatomy-of-a-commit-message).\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",
"cat example\\_commit.txt \n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"Provide a good commit message example\n",
"\n",
"The purpose of this commit is to provide an example of a hand-crafted,\n",
"\n",
"artisanal commit message. The first line is a short, approximately 50-character\n",
"\n",
"summary, followed by an empty line. The subsequent paragraphs are jam-packed\n",
"\n",
"with descriptive information about the change, but each line is kept under 72\n",
"\n",
"characters in length.\n",
"\n",
"If even more information is needed to explain the change, more paragraphs can\n",
"\n",
"be added after blank lines, with links to issues, tickets, or bugs. Remember\n",
"\n",
"that future you will thank current you for your thoughtfulness and foresight!\n",
"\n",
"\\# Please enter the commit message for your changes. Lines starting\n",
"\n",
"\\# with '#' will be ignored, and an empty message aborts the commit.\n",
"\n",
"\\# On branch master\n",
"\n",
"\\# Changes to be committed:\n",
"\n",
"\\# new file:   super\\_script.py\n",
"\n",
"\\# new file:   cool\\_config.txt\n",
"\n",
"\n",
"```bash\n",
"cd scripts\n",
"\n",
"git log\n",
"```\n",
"\n",
"**Code output:**\n",
"\n",
"commit d8e139cc4f7dcd13b75cff67cfb68527e24c59c5 (HEAD -> master)\n",
"\n",
"Author: My name <me@example.com>\n",
"\n",
"Date:   Thu Jul 11 17:19:32 2019 +0200\n",
"\n",
"    Add a check\\_reboot function\n",
"\n",
"commit 6cfc29966acda8213fcd8ac2735b31f3fdbc6c53\n",
"\n",
"Author: My name <me@example.com>\n",
"\n",
"Date:   Thu Jul 11 12:08:46 2019 +0200\n",
"\n",
"    Create and empty all\\_checks.py"
]
},
{
"cell_type": "markdown",