[Learning Git] Modification and Tag

This is my personal study note for remembering and reviewing what I learned about Git.

Commands
git commit –amend: To change the latest log message. To make modifications to the most recent commit.
git tag v1 c1: To name the tag v1 to the commit c1.
git describe (ref): To get bearing when lost. It is like compass. (ref) can be anything git can resolve into a commit. It can be the branch name, HEAD, hash, or whatever git can resolve. The output would be (tag)_(numcommits)_g(hash). (tag) is the closest tag in history from the (ref), numcommits) is the number of commits from the (ref) to (tag), (hash) is the hash of the (ref)

I am studying these from the web https://learngitbranching.js.org/ which is totally free to learn.