Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.03 KB

File metadata and controls

28 lines (18 loc) · 1.03 KB

Committing

Now that you're using your new branch, it's time to change some code. Open up App.js and change 'Hello World' to 'Bonjour tout le monde.' and then save the file. Verify that you have changes by executing:

git status

You should see that you have changes. Add those changes to the next commit with this command.

git add -A

Try git status again to see those changes are ready to be committed. Finally commit the changes to your local repository with the commit command.

git commit -m 'Translated to French'

the -m parameter allows you to include a commit message. You could have left if off, but then you would have been prompted to include one. The default text-editor is VIM which for some is hard to use so most find easier to add the message along with the commit command.

Now that you're done committing changes, execute git status once more to verify your changes are committed.

Here's what it should look like in your terminal:

alt_text