August 2019
Beginner
608 pages
16h 7m
English
One frequently used feature of Git is the ability to amend to a commit. This is possible because, in Git, there is a difference between creating and publishing a commit. This won't inconvenience users compared to CVS, where it would. If you make a typo in your commit message in Git, you can use git commit --amend to correct it. It's also technically possible in CVS, but it would be hard to implement:
$ echo "This is the last line FOR REAL" >> README.md $ git log commit 499beb6dd81ee62e90b05ee8e9aa3ccced7a4fd2 (HEAD -> new-readme) Author: Joost Evertse <joustie@gmail.com> Date: Thu Dec 6 21:18:32 2018 +0100 A new line was added
Let's pretend I forgot to add something to my README.md file (a text file in my repository). The ...
Read now
Unlock full access