add global gitignore

This commit is contained in:
2021-07-23 12:14:17 +03:00
parent 4428e3cc94
commit c075f4b6db
3 changed files with 17 additions and 0 deletions
+15
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
**Как отправлять исходники в несколько репозиториев одной командой:**