dinkolubina
8/11/2017 - 2:35 PM

If you commit and don’t push something and want to reset the commit.

If you commit and don’t push something and want to reset the commit.

  git commit
  git reset -—soft HEAD^
  
# edit what needs to be edited
  
  git commit -a -c ORIG_HEAD