Skip to content

Commit 0f43950

Browse files
authored
Merge pull request DjangoGirls#1682 from nikhiljohn10/updating-git
Updating git inside tutorial
2 parents 401a13d + d7cd53e commit 0f43950

File tree

5 files changed

+32
-10
lines changed

5 files changed

+32
-10
lines changed

en/deploy/README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,38 @@ Git will track changes to all the files and folders in this directory, but there
3636

3737
{% filename %}.gitignore{% endfilename %}
3838
```
39+
# Python
3940
*.pyc
4041
*~
41-
/.vscode
4242
__pycache__
43-
myvenv
43+
44+
# Env
45+
.env
46+
myvenv/
47+
venv/
48+
49+
# Database
4450
db.sqlite3
45-
/static
51+
52+
# Static folder
53+
static/
54+
55+
# macOS
56+
._*
4657
.DS_Store
58+
.fseventsd
59+
.Spotlight-V100
60+
61+
# Windows
62+
Thumbs.db*
63+
ehthumbs*.db
64+
[Dd]esktop.ini
65+
$RECYCLE.BIN/
66+
67+
# Visual Studio
68+
.vscode/
69+
.history/
70+
*.code-workspace
4771
```
4872

4973
And save it as `.gitignore` in the "djangogirls" folder.
@@ -80,7 +104,7 @@ And finally we save our changes. Go to your console and run these commands:
80104

81105
{% filename %}command-line{% endfilename %}
82106
```
83-
$ git add --all .
107+
$ git add .
84108
$ git commit -m "My Django Girls app, first commit"
85109
[...]
86110
13 files changed, 200 insertions(+)

en/django_forms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ Let's see if all this works on PythonAnywhere. Time for another deploy!
405405
{% filename %}command-line{% endfilename %}
406406
```
407407
$ git status
408-
$ git add --all .
408+
$ git add .
409409
$ git status
410410
$ git commit -m "Added views to create/edit blog post inside the site."
411411
$ git push

en/django_templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ It'd be good to see if your website will still be working on the public Internet
7777
```
7878
$ git status
7979
[...]
80-
$ git add --all .
80+
$ git add .
8181
$ git status
8282
[...]
8383
$ git commit -m "Modified templates to display posts from database."

en/extend_your_application/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ It'd be good to see if your website still works on PythonAnywhere, right? Let's
172172
{% filename %}command-line{% endfilename %}
173173
```
174174
$ git status
175-
$ git add --all .
175+
$ git add .
176176
$ git status
177177
$ git commit -m "Added view and template for detailed blog post as well as CSS for the site."
178178
$ git push

en/html/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,9 @@ Make sure you're in the `djangogirls` directory and let's tell `git` to include
167167

168168
{% filename %}command-line{% endfilename %}
169169
```
170-
$ git add --all .
170+
$ git add .
171171
```
172172

173-
> __Note__ `--all` means that `git` will also recognize if you've deleted files (by default, it only recognizes new/modified files). Also remember (from chapter 3) that `.` means the current directory.
174-
175173
Before we upload all the files, let's check what `git` will be uploading (all the files that `git` will upload should now appear in green):
176174

177175
{% filename %}command-line{% endfilename %}

0 commit comments

Comments
 (0)