Branch from a previous commit on master as though the branch was made before commits were made


  • remove the commits from master as though you had made the branch before those commits were made
git checkout master
git branch branch-name
git reset --hard <sha1>

  • 0 posts
  • 0 subtopics
  • 4 months ago by vince