- The
.gitdirectory keeps the config history: a chain of commits with an author, a date and a message. git statusandgit diffshow what was changed since the last commit, andgit restore <file>throws that edit away.git log -pandgit blamefind who changed a line, when and in which commit.git revert <hash>undoes one commit with a new commit: the history and later edits stay in place.- nginx at the start of the lesson fell over an uncommitted line without a semicolon:
nginx -tshowed where parsing stumbled, andgit diffshowed the edit itself.
Step 6 of 6 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson