Git
Add files to a commit
Use git mv
or git rm
for moved or deleted files.
Show the modified files
Show the modifications in a file
Commit
Fix last commit message
Push commits
Undo changes in a file
Get the list of commits
Reverse a commit
This does not delete the commit, it creates a new commit that cancels previous changes. The history is preserved.
This deletes the not yet pushed commits from the history, but the files are preserved. The commits are deleted, but the contents are still on the disk.
To also cancel the changes on the contents: