Undo delete in GIT

I made something very stupid.
I made a commit using git commit (file edits + new files) (C).
Then I made amend last commit.
Then I deleted all files recursively (!) using git rm -r
Then I made another …

Undo inside WPF M-V-VM, how does it fit?

In my previous projects, I have already implemented undo system in c++, and I know how it work. I am also aware of the Command pattern.

I will be implementing a C#/WPF desktop application and would …

Git pull into wrong branch

Myself and one other developer had been merging and pushing our work to a non-master branch called toolwork. That way, we didn’t impact the rest of the team. My topic branch was called DPM-93 and my …

Vim undo: undo changes after file write

In my code on vim, I did a lot of changes and then did a ZZ (save and exit). But then I realized I didn’t need those changes. Is there a way I can get back to the state before doing those changes …