⇦ Back to: Branch | ⇧ Overview | ⇨ Next: Push

Solve the issue, commit-by-commit

<aside> 📚 A commit is a snapshot of all the files in the repository.

Commits are listed in the log

</aside>

Approach

<aside> 💡 Commit pro-tips:

Using GitHub Desktop

GitHub Desktop automatically recognizes that you’ve made a changes to the files.

Add your commit summary and optional description in the field at the bottom left, and then press “commit to 12-your-branch-name-here”.

The commit will appear in the log, shown on the “history” tab.

Using git on the command line

Git needs to be told which of your files have been modified. “Stage” these files using the command git add <filename>, e.g.

git add git-text-content.md

To see a list of modified files and whether they are staged (i.e. going to be included in the next commit), run:

git status