Right reset branch (clean history commits after some specific commit)

git reset --hard <SHA1> 

git push origin <branch-name> --force-with-lease 

    or just git push --force-with-lease 


--force-with-lease       -->      don't let us overwrite somebody's else dev's commits

Comments

Popular posts from this blog

30 маловідомих, але корисних команд Linux (repost)

15 поширених команд Linux (repost з ITEDU.center)