git-dual-commit/init.sh

16 lines
481 B
Bash
Raw Normal View History

2024-06-09 18:48:57 +00:00
#!/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
2024-06-09 19:39:04 +00:00
git add README.md
2024-06-09 18:48:57 +00:00
git branch -M main
git commit -m "initial commit"
git push all main