|
|
|
|
|
by mi_lk
2703 days ago
|
|
> The use of GitHub to show diffs of each step is quite effective. Little off-topic, but that's one of the reasons I like to use Magit on Emacs, you can see the diff of each commit interactively and intuitively. [1]:https://magit.vc/ |
|
Anyhow, with just git.
Diff of most recent commit:
Diff of preceding commit: Diff of commit before that again Of course you don’t want to type ^ 200 times. Fortunately you don’t have to. Diff of commit three steps back before most recent: Or you can look at the log first And find a specific commit and then use the first few characters of the id of that commit, e.g. And of course I would be remiss to not mention And These two show you unstaged and staged changes before you commit. I use these commands all the time. So much that they are two of the commands I have created very short two-letter aliases for in my .bashrc