git head reset soft code example
Example 1: git soft reset head
git reset --soft HEAD^
//resets head by 1
Example 2: git reset soft
git reset --soft
Example 3: git reset
git reset --soft HEAD~3
git commit
git push —force-with-lease origin
git reset --soft HEAD^
//resets head by 1
git reset --soft
git reset --soft HEAD~3
git commit
git push —force-with-lease origin