organize dirs

This commit is contained in:
2022-03-27 11:09:33 +03:00
parent 005db342a6
commit 8ac8a8d7a9
32 changed files with 61 additions and 336 deletions

24
~/Git/.gitconfig Normal file
View File

@@ -0,0 +1,24 @@
[alias]
co = checkout
cm = commit
br = branch
st = status
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Alexander Popov
email = iiiypuk@fastmail.fm
signingkey = 3F76816AEE08F908
[core]
eol = lf
autocrlf = input
excludesFile = ~/.gitignore
[commit]
gpgsign = true
[gpg]
program = /usr/bin/gpg
[init]
defaultBranch = master

2
~/Git/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
venv/
vendor/

35
~/Git/README.md Normal file
View File

@@ -0,0 +1,35 @@
## 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
**Как отправлять исходники в несколько репозиториев одной командой:**
1. Создаем новый remote например `all`
```bash
git remote add "all" git@github.com:username/my-repo.git
```
2. Добавляем в него несколько адресов для пуша
```bash
git remote set-url --add --push "all" git@username/my-repo.git
git remote set-url --add --push "all" git@bitbucket.org:username/my-repo.git
```
3. Чтобы запушить сразу в два репозитория выполняем
```bash
git push all
```
[Thanks, oleglomako](https://gist.github.com/oleglomako/eaacd8670bda3720a37de2c8acaf910e).