update module2.ipynb
This commit is contained in:
parent
11dd0f55af
commit
119672fae3
152
module2.ipynb
152
module2.ipynb
@ -359,7 +359,157 @@
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
"source": [
|
||||
"# Deleting and Renaming Files\n",
|
||||
"\n",
|
||||
"This reading contains the code used in the instructional videos from [**Deleting and Renaming FIles**<svg aria-labelledby=\"cds-react-aria6078214324-:r2br:-title\" fill=\"none\" focusable=\"false\" height=\"16\" role=\"img\" viewBox=\"0 0 20 20\" width=\"16\" class=\"css-8blerm\" id=\"cds-react-aria6078214324-:r2br:\"><title id=\"cds-react-aria6078214324-:r2br:-title\">Opens in a new tab</title></svg>](https://www.coursera.org/learn/introduction-git-github/lecture/3OT51/deleting-and-renaming-files)\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",
|
||||
"cd checks/\n",
|
||||
"\n",
|
||||
"ls \\-l\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"total 8\n",
|
||||
"\n",
|
||||
"\\-rw-rw-r-- 1 user user 659 Jul 9 19:28 disk\\_usage.py\n",
|
||||
"\n",
|
||||
"\\-rw-rw-r-- 1 user user 659 Jul 15 21:43 processes.py\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"git rm process.py\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"rm '[processes.py<svg aria-labelledby=\"cds-react-aria6078214324-:r2c7:-title\" fill=\"none\" focusable=\"false\" height=\"16\" role=\"img\" viewBox=\"0 0 20 20\" width=\"16\" class=\"css-8blerm\" id=\"cds-react-aria6078214324-:r2c7:\"><title id=\"cds-react-aria6078214324-:r2c7:-title\">Opens in a new tab</title></svg>](http://processes.py/)'\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"ls \\-l \n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"total 4\n",
|
||||
"\n",
|
||||
"\\-rw-rw-r-- 1 user user 659 Jul 9 19:28 disk\\_usage.py\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"git status\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"On branch master\n",
|
||||
"\n",
|
||||
"Changes to be committed:\n",
|
||||
"\n",
|
||||
" (use \"git reset HEAD <file>...\" to unstage)\n",
|
||||
"\n",
|
||||
" deleted: [processes.py<svg aria-labelledby=\"cds-react-aria6078214324-:r2cj:-title\" fill=\"none\" focusable=\"false\" height=\"16\" role=\"img\" viewBox=\"0 0 20 20\" width=\"16\" class=\"css-8blerm\" id=\"cds-react-aria6078214324-:r2cj:\"><title id=\"cds-react-aria6078214324-:r2cj:-title\">Opens in a new tab</title></svg>](http://processes.py/)\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"git commit \\-m 'Delete unneeded processes file'\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"\\[master 9939311\\] Delete unneeded processes file\n",
|
||||
"\n",
|
||||
" 1 file changed, 24 deletions(-)\n",
|
||||
"\n",
|
||||
" delete mode 100644 processes.py\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"git mv disk\\_usage.py check\\_free\\_space.py\n",
|
||||
"\n",
|
||||
"git status\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"On branch master\n",
|
||||
"\n",
|
||||
"Changes to be committed:\n",
|
||||
"\n",
|
||||
" (use \"git reset HEAD <file>...\" to unstage)\n",
|
||||
"\n",
|
||||
" renamed: disk\\_usage.py -> check\\_free\\_space.py\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"git commit \\-m 'New name for disk\\_usage.py'\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"\\[master 7d7167b\\] New name for disk\\_usage.py\n",
|
||||
"\n",
|
||||
" 1 file changed, 0 insertions(+), 0 deletions(-)\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"echo .DS\\_STORE > gitignore\n",
|
||||
"\n",
|
||||
"ls \\-la\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"total 20\n",
|
||||
"\n",
|
||||
"drwxrwxr-x 3 user user 4096 Jul 15 22:15 .\n",
|
||||
"\n",
|
||||
"drwxr-xr-x 19 user user 4096 Jul 15 16:37 ..\n",
|
||||
"\n",
|
||||
"\\-rw-rw-r-- 1 user user 659 Jul 9 19:28 check\\_free\\_space.py\n",
|
||||
"\n",
|
||||
"drwxrwxr-x 8 user user 4096 Jul 15 21:52 .git\n",
|
||||
"\n",
|
||||
"\\-rw-rw-r-- 1 user user 10 Jul 15 22:15 .gitignore\n",
|
||||
"\n",
|
||||
"```bash\n",
|
||||
"git add .gitignore \n",
|
||||
"\n",
|
||||
"git commit \\-m 'Add a gitignore file, ignoring .DS\\_STORE files'\n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"**Code output:**\n",
|
||||
"\n",
|
||||
"\\[master abb0632\\] Add a gitignore file, ignoring .DS\\_STORE files\n",
|
||||
"\n",
|
||||
" 1 file changed, 1 insertion(+)\n",
|
||||
"\n",
|
||||
" create mode 100644 .gitignore"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Study Guide: Advanced Git\n",
|
||||
"\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# "
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
Loading…
Reference in New Issue
Block a user