Git uncommit the last oneJan 1, 1970·1 minSafest option to undo commit and leave everything intact:git reset --soft HEAD^ See this for more info.