### 2. Ignoring some files and folders by default
```
1. Browse to C:\Repos\MyFirstRepo.
2. Create a .gitignore file using your preferred editor.
3. Put this text inside it:
# === This is a sample of .gitignore file ===
# Ignore temp files
*.tmp
```
```
#Only Include these specific directories and subdirectories:
!wordpress/
!wordpress/*/
!wordpress/*/wp-content/
!wordpress/*/wp-content/themes/
!wordpress/*/wp-content/themes/*
!wordpress/*/wp-content/themes/*/*
!wordpress/*/wp-content/themes/*/*/*
!wordpress/*/wp-content/themes/*/*/*/*
!wordpress/*/wp-content/themes/*/*/*/*/*
```
```
bin/Debug/*
bin/Release/*
```
### My .gitignore
```sh
**/
*.db
*.idea
*.pyc
*.xml
test.py
.gitignore
```