Add a local commit and push it to the remote

❮ Back Next ❯

First, we’ll make small change to the app.

Open the project in VS Code.

Edit the app/views/people/show.html.erb file such that, instead of "Destroy this person" (which sounds bad), it says "Delete this record".

Stage all changes:

git add -A

Commit the staged changes:

git commit

Add the log message:

Modify the destroy-person button

To save the log message,

Run the gloga command.

Note that the remote branch origin/main is now behind the local branch main in the version history.

To upload the latest commit to GitHub, run the push command:

git push

In your browser, refresh the repo home page.

Note that the GitHub repo now contains the latest commit and file edits made above.

Run the gloga command.

Note that the remote branch remote/main has now caught up to the local branch main in the version history.


❮ Back Next ❯