From 9cfe9ae0f8ef09ef9a7a54f9848b3505b02ef3a0 Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Sun, 2 Aug 2015 08:39:44 +0200 Subject: [PATCH] README --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 32b45a6..705a6f0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,38 @@ # git-regret -git regret --hard +`git regret --hard` + + +Do you regret your changes to a GIT repository sometimes? That's when `git regret` becomes useful. + +## How to install it ## + +Simply run + + sudo make install + +to install and + + sudo make uninstall + +to remove it. +The requirements are GIT and Python 3. + +## How to use it ## + +You have to be in a GIT repository to use `git-regret`. + +If you want to delete all changes you have made since the last commit, you would usually execute: + + git reset --hard HEAD + +`git regret` improves this: + + git regret --soft + +If you want to delete the last commit, but retain all changes, you would usually run: + + git reset --soft HEAD^ + +Or you can use `git regret`: + + git regret --hard