LocChat/bin/setup_new_project.sh

21 lines
445 B
Bash
Raw Normal View History

2021-12-03 20:31:24 -05:00
#!/bin/bash
echo "What is the name of your application?"
read appname
echo "Where is your git repo? (eg git@github.com:dittonjs/NestStarterApp.git)"
read reponame
2021-12-03 20:40:37 -05:00
# replace the title of the README with new app name
2021-12-03 20:31:24 -05:00
sed -i "s/USU CS4610 Nest Starter App/$appname/" README.md
2021-12-03 20:40:37 -05:00
git add .
git commit -m "setup new project '$appname'"
2021-12-03 20:31:24 -05:00
git remote rename origin upstream
git remote add origin $reponame
git branch -M main
git push -u origin main