initial commit
This commit is contained in:
parent
2ed49be277
commit
b00103155a
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue