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
**Как отправлять исходники в несколько репозиториев одной командой:**

View File

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

1
Git/gitignore Normal file
View File

@ -0,0 +1 @@
venv/