ruby on rails 3 - removed commits appearing on github commit history -
i understand following command removes previous commits github (^ = ntimes)
git push -f origin head^^:master
i wanted remove last 2 commits, when make more local changes,
git add . git commit -m "example" git push origin master
the commits removed appear again?
what mean when running
git status
i
your branch ahead of 'origin/master' 2 commits.
so 2 previous commits there
anything need stop happening
thanks
answer if runs problem, or if better way let know. anyway ran
git reset --soft head^^1
which undone last 2 commits guess, left me date. able run usual
git add . git commit -m "message" git push origin master
and previous commits not included
Comments
Post a Comment