Fixed new project scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user