mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-26 07:02:03 +00:00
sync
This commit is contained in:
@@ -70,3 +70,15 @@ mr_sync:
|
||||
|
||||
mr_add_all:
|
||||
mr run git add --all
|
||||
|
||||
# Publish current directory to GitHub
|
||||
[no-cd]
|
||||
GH_publish:
|
||||
echo "📦 Publishing to GitHub..."
|
||||
test -d .git || git init
|
||||
git add .
|
||||
git commit -m "init" || true
|
||||
gh repo create {{file_name(invocation_directory())}} --public --source=. --push --disable-wiki || true
|
||||
git remote add origin git@github.com:$(gh api user -q .login)/{{file_name(invocation_directory())}}.git || true
|
||||
git push -u origin $(git branch --show-current) || git push -u origin $(git branch --show-current) --force
|
||||
echo "✅ Published to: https://github.com/$(gh api user -q .login)/{{file_name(invocation_directory())}}"
|
||||
|
||||
Reference in New Issue
Block a user