initial commit

This commit is contained in:
Notoric 2024-06-09 19:48:57 +01:00
parent 2ed49be277
commit b00103155a
2 changed files with 32 additions and 0 deletions

16
init.ps1 Normal file
View File

@ -0,0 +1,16 @@
# Get the current directory name
$current_dir = Split-Path -Path (Get-Location) -Leaf
# Create README.md file
New-Item -Path "$current_dir\README.md" -ItemType File
# Initialize git repository
git init
git remote add all "https://github.com/Notoric/$current_dir.git"
git remote set-url --add --push all "https://github.com/Notoric/$current_dir.git"
git remote set-url --add --push all "https://gitea.notoricloud.net/Notoric/$current_dir.git"
git add .
git branch -M main
git commit -m "initial commit"
git push origin main
git push gitea main

16
init.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Define the name of the repo as the current directory name
current_dir=$(basename "${PWD}")
# Create a readme file
touch README.md
# Initialize git repository
git init
git remote add all https://github.com/Notoric/$REPO.git
git remote set-url --add --push all https://github.com/Notoric/$REPO.git
git remote set-url --add --push all https://gitea.notoricloud.net/Notoric/$REPO.git
git add .
git branch -M main
git commit -m "initial commit"
git push all main