diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-29 01:45:07 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-29 14:50:02 +0100 |
| commit | bf7347380207d80183ce80ae6547ef08fa579c6a (patch) | |
| tree | ec64896997e4bd76d89738f0b156dde7423ff107 /scripts/origin | |
| parent | feat: initial commit (diff) | |
| download | dotfiles-bf7347380207d80183ce80ae6547ef08fa579c6a.tar.gz | |
feat: add scripts, TARGET variable for Makefile
Diffstat (limited to 'scripts/origin')
| -rwxr-xr-x | scripts/origin | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/origin b/scripts/origin new file mode 100755 index 0000000..ae67999 --- /dev/null +++ b/scripts/origin @@ -0,0 +1,12 @@ +#!/bin/sh +dir=${PWD##*/} +dir=${dir:-/} + +git remote add origin git@git.sr.ht:~pml68/"$dir" +echo "* text=auto eol=lf + +# Older git versions try to fix line endings on images, this prevents it. +*.png binary +*.jpg binary +*.ico binary" > .gitattributes +git config --add push.pushOption visibility="${1:-public}" |
