Skip to content

Commit e0fc6f4

Browse files
Update global-ignore.md
1 parent 7b6f318 commit e0fc6f4

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

recipes/version-control/git/global-ignore.md

+22-26
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,31 @@ Or add the following to your `~/.gitconfig` config file directly, then save it.
2424

2525
## 2. Create the ignore file
2626

27-
```sh
28-
$ touch ~/.gitignore
29-
```
30-
31-
Edit it.
32-
33-
Add any rules to it. For example:
34-
35-
```
36-
# Linux folder attributes and PyCharm metadata.
37-
.idea
38-
39-
# Mac folder attributes
40-
.DS_Store
41-
```
42-
43-
Save and exit.
27+
1. Create and edit a file here e.g.
28+
```sh
29+
$ vim ~/.gitignore
30+
```
31+
1. Add any rules to it. For example:
32+
```
33+
# Linux folder attributes and PyCharm metadata.
34+
.idea
35+
36+
# Mac folder attributes
37+
.DS_Store
38+
```
39+
1. Save and exit.
4440

4541

4642
## 3. Test the ignoring
4743

48-
Navigate to a repo.
49-
50-
Create a file or folder which is in your ignore list.
44+
The change will appear in your IDE.
5145

52-
Then run:
53-
54-
```sh
55-
$ git status
56-
```
46+
Check with CLI steps:
5747

58-
You will see the file or folder will be ignored.
48+
1. Navigate to a repo.
49+
1. Create a file or folder which is in your ignore list.
50+
1. Then run:
51+
```sh
52+
$ git status
53+
```
54+
1. You will see the file or folder will be ignored.

0 commit comments

Comments
 (0)