git reset soft head command code example
Example 1: git soft reset head
git reset --soft HEAD^
//resets head by 1
Example 2: git reset head
sudo git reset --hard Head
git reset --soft HEAD^
//resets head by 1
sudo git reset --hard Head