Add command to edit the last commit message in git.md

This commit is contained in:
Donovan Glover 2017-11-06 01:35:14 -05:00
parent 261608492b
commit c473157ff9
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -15,6 +15,7 @@
- The most common use is `git push origin master`, which is usually the default for `git push`
- Show the difference between the staging area and the working tree: `git diff` **OR** `gd`
- Show a log of all the commits: `git log` (full log) **OR** `git lg` (commits only, easier to read)
- Edit the last commit message: `git commit --amend`
Note that the `-u` flag means `set-(u)pstream-to`. It records the location so you don't have to set which remote to push or pull from every time.