Balaji Vajjala's Blog

A DevOps Blog from Trenches

01.03

  • 1.3 Commit Application Code
    • Learning Objectives
    • Checkin application code to GitHub
    • EXERCISE: Checkin application code to GitHub
    • EXERCISE: Checkin application code to GitHub (OPTIONAL)

1.3 Commit Application Code

Learning Objectives

By the end of this lesson you will be able to:

  • Checkin application code to Git.

Checkin application code to GitHub

Slide1

EXERCISE: Checkin application code to GitHub

  1. From your AWSCLI instance, go to the web directory.
  2. Open the index.jsp file

    “` $ sudo vim index.jsp

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add index.jsp

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modify the application code”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`

EXERCISE: Checkin application code to GitHub (OPTIONAL)

  1. From your AWSCLI instance, go to the sample_app.
  2. Open the home.html.erb file

    “` $ sudo vim home.html.erb

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add .

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modify the application code”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`