Make one visible edit
Change a sentence in your practice file. This changes your working tree. Keep the exercise small enough that you can explain exactly what changed before moving on.
Small changes. Clear history.
Start with a disposable practice repository and one text file. A small example makes it easier to see the difference between the files you are editing, the changes selected for a commit, and the history already recorded.
Change a sentence in your practice file. This changes your working tree. Keep the exercise small enough that you can explain exactly what changed before moving on.
Staging selects the content for your next commit. Select the changes that form one understandable step. Editing a file and staging its content are separate parts of the workflow.
A commit records a snapshot of the staged content in the repository. Give the step a useful message, then repeat the exercise with another small edit.
An independent introductory guide from A14A. This site is not affiliated with the Git project and does not currently offer a course or certification.
Share a learning question