Github deploy
For those of you who don’t know what Github is, It is a code hosting platform for version control and collaboration. In this document, we will be walking you through how to host your code on Heroku, by pushing it to Github
1. Create a new repository in github
2. Commit and push your code to Github
a. git init
b. git add <_files that you will use_>
c. git commit -m "first commit"
d. git Branch -M main
e. git remote add origin <<https://github.com/YOURACCOUNT/PROJECTNAME.git>>
f. git push -u origin main
If you are struggling to push your code, follow this link for further instructions.
Now your project is on Github!
Make sure you have already created an app on Heroku! Please access our Creating a new app documentation if you are having trouble 3. Scroll down to where it says Deployment Methods. We will be using this to connect to Github option
***
4. Enter the name of your github repository
* **5. After you find the repository, click connect. Once you have done that, we are done!