I\'m looking to split a commit up and not sure which reset option to use.
I was looking at the page In plain English, what does "git reset" do?, but I real
All the other answers are great, but I find it best to understand them by breaking down files into three categories: unstaged, staged, commit:
--hard should be easy to understand, it restores everything--mixed (default) :
unstaged files: don't changestaged files: move to unstagedcommit files: move to unstaged--soft:
unstaged files: don't changestaged files: dont' changecommit files: move to stagedIn summary:
--soft option will move everything (except unstaged files) into staging area--mixed option will move everything into unstaged area