1. Prerequisites
  2. Initializing Git Repo

Prerequisites

Initializing Git Repo

Deploying to AWS.

Prerequisites

Initializing git and push the application to the new GitHub repo

  1. Step 1

    Run the init cmd to initialize the repo.

    terminal
    git init
    
  2. Step 2

    `git add .` will add all files to git repo to track.

    terminal
    git add .
    
  3. Step 3

    Commit your files to git.

    terminal
    git commit -m “initial commit”
    
  4. Step 4

    It will rename the branch to main.

    terminal
    git branch -M main
    
  5. Step 5

    Replace `username` and `reponame` with yours.

    terminal
    git remote add origin git@github.com:git@github.com:username/reponame.git
    
  6. Step 6

    Push repo to github.

    terminal
    git push origin main