Prerequisites
Initializing Git Repo
Deploying to AWS.
Prerequisites
- Make sure you have a Jamstack App ready to host
- A Github Account
- Git installed on your system
Initializing git and push the application to the new GitHub repo
Step 1
Run the init cmd to initialize the repo.
terminalgit init
Step 2
`git add .` will add all files to git repo to track.
terminalgit add .
Step 3
Commit your files to git.
terminalgit commit -m “initial commit”
Step 4
It will rename the branch to main.
terminalgit branch -M main
Step 5
Replace `username` and `reponame` with yours.
terminalgit remote add origin git@github.com:git@github.com:username/reponame.git
Step 6
Push repo to github.
terminalgit push origin main