Create your deployed site BEFORE you start your project (to track your commits effectively)
Please do not forget to create a .gitignore for your assignments, and in them add: .DS_Store node_modules package-lock.json
If you want to set up heroku to work with mysql there are additional steps that aren't included (you probably want to find those first)
- Set File Name by creating github repo
- Clone github repo to file on your computer
- Open your file with vs code, then open your terminal
- In the terminal type in rm -rf .git (enter)
- ls -la (enter) to make sure .git is gone
- git init (enter)
- git add . (enter)
- git commit -m"init commit" (enter)
- heroku login (enter)
- type in a letter to be redirected to a log in
- heroku create --2 urls should appear (save them)
- git push origin master
- git push heroku master
- git add . (enter)
- git commit -m"your changes"
- git push origin master
- git push heroku master
- git pull and then get push again
or
- git checkout -b masterbranch
- git push herko masterbranch
this resets the master branch - you may need to go into your github settings under branches and reset your branch
or
- git remote add origin https:yourrepofilename
- git push origin maset
For anyone who can't keep track of all the step by step guides and hold them in their head at once.
Rachael Kelm-Southworth