This repository has been archived on 2024-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
joomla/bin/inc_new_project/git_setup.sh
2023-06-10 20:40:11 -07:00

18 lines
422 B
Bash

#!/bin/bash
PROJECTNAME=$(basename "$(pwd)")
# Remove existing Git repository information
rm -rf .git
rm README.md
touch README.md
echo "# ${PROJECTNAME}" > README.md
echo "" > README.md
echo "Created a fresh repo for your ${PROJECTNAME} project." >> README.md
# Initialize a new Git repository
echo -e "\n\e[32mSetup Git Locally\e[0m\n";
git init
git add .
git commit -m "Initial commit of new project $PROJECTNAME"