Печенька блять!

This commit is contained in:
2025-02-11 00:18:55 +03:00
parent fb73a963b6
commit 11c5031c60
74 changed files with 0 additions and 0 deletions

27
🍪/Git/.gitconfig Normal file
View File

@@ -0,0 +1,27 @@
[alias]
co = checkout
cm = commit
br = branch
st = status
h = rev-parse HEAD
hs = rev-parse --short HEAD
[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 = FA03294D5BACCEF663F5D352E47FE0AB36CD5ED6
[core]
eol = lf
autocrlf = input
excludesFile = ~/.gitignore
editor = subl -w
[commit]
gpgsign = false
[gpg]
program = /usr/bin/gpg
[init]
defaultBranch = master

8
🍪/Git/.gitignore vendored Normal file
View File

@@ -0,0 +1,8 @@
venv/
__pycache__/
node_modules/
vendor/
.buildozer/
composer.phar
.directory
.env

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).