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
EXERCISE: Checkin application code to GitHub
- From your AWSCLI instance, go to the web directory.
Open the index.jsp file
“` $ sudo vim index.jsp
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add index.jsp
“`
Commit the file to Git
“` $ git commit -m “Modify the application code”
“`
Push it to the Git master.
“` $ git push
“`
EXERCISE: Checkin application code to GitHub (OPTIONAL)
- From your AWSCLI instance, go to the sample_app.
Open the home.html.erb file
“` $ sudo vim home.html.erb
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add .
“`
Commit the file to Git
“` $ git commit -m “Modify the application code”
“`
Push it to the Git master.
“` $ git push
“`