add global gitignore

This commit is contained in:
Alexander Popov 2021-07-23 12:14:17 +03:00
parent 4428e3cc94
commit c075f4b6db
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
3 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,18 @@
## global .gitignore
**Windows `cmd.exe`:**
```cmd
git config --global core.excludesFile "%USERPROFILE%\.gitignore"
```
**or PowerShell:**
```powershell
git config --global core.excludesFile "$Env:USERPROFILE\.gitignore"
```
**Linux:**
```bash
git config --global core.excludesFile '~/.gitignore'
```
## git push remote all ## git push remote all
**Как отправлять исходники в несколько репозиториев одной командой:** **Как отправлять исходники в несколько репозиториев одной командой:**

View File

@ -15,6 +15,7 @@
[core] [core]
eol = lf eol = lf
autocrlf = input autocrlf = input
excludesFile = ~/.gitignore
[commit] [commit]
gpgsign = true gpgsign = true
[gpg] [gpg]

1
Git/gitignore Normal file
View File

@ -0,0 +1 @@
venv/