Fixed new project scripts

This commit is contained in:
2023-12-19 13:05:01 -08:00
parent ae3688b166
commit 471395fba7
3 changed files with 12 additions and 8 deletions

View File

@@ -1,14 +1,15 @@
#!/bin/bash
# This Bash script initializes a new Git repository, removes existing Git info, creates a README.md with the project name, and makes an initial commit.
PROJECTNAME=$(basename "$(pwd)")
# Remove existing Git repository information
rm -rf .git
rm -rf .git # Remove existing Git repository information
rm README.md
# New readme for Project
rm README.md
touch README.md
echo "# ${PROJECTNAME}" > README.md
echo "" > README.md
echo "" >> README.md
echo "Created a fresh repo for your ${PROJECTNAME} project." >> README.md
# Initialize a new Git repository

View File

@@ -1,4 +1,5 @@
#!/bin/bash
# Creates a private Git repository on Gitea using its API, adds a remote origin to the local Git repository, and pushes existing changes to the master branch.
PROJECTNAME=$(basename "$(pwd)")