You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules_and_packages.ipynb
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -832,6 +832,7 @@
832
832
]
833
833
},
834
834
{
835
+
"attachments": {},
835
836
"cell_type": "markdown",
836
837
"metadata": {
837
838
"tags": []
@@ -844,20 +845,27 @@
844
845
"```bash\n",
845
846
" $ git init\n",
846
847
"```\n",
847
-
"3. Run the following command to add all files to the staging area:\n",
848
+
"3. Create a new file named `.gitignore` (do **not** forget the leading `.`) in the package directory with the following content to exclude some temporary files from the repository:\n",
849
+
"```\n",
850
+
" .ipynb_checkpoints\n",
851
+
" __pycache__\n",
852
+
"```\n",
853
+
"4. Run the following command to add all files to the staging area:\n",
"<b>Warning:</b> the dot (<code>.</code>) means <b>all files</b> in the current directory. If you have any files that you don't want to add to the Git repository, remove them from the directory before running the command above.\n",
858
+
"<b>Warning:</b> the dot (<code>.</code>) means <b>all files</b> in the current directory **except** those listed in the <code>.gitignore</code> file.\n",
859
+
"Git does not track files that are listed in the <code>.gitignore</code> file.\n",
860
+
"The <code>.gitignore</code> file, however, should be committed to the repository.\n",
853
861
"</div>\n",
854
862
"\n",
855
-
"4. Review the changes that will be committed:\n",
863
+
"5. Review the changes that will be committed:\n",
856
864
"```bash\n",
857
865
" $ git status\n",
858
866
"```\n",
859
867
"\n",
860
-
"5. Run the following command to commit the changes:\n",
868
+
"6. Run the following command to commit the changes:\n",
0 commit comments