git - Copy master branch data into other branch -
i have project master branch , second_branch. data in 2 branches different , want copy data master branch second_branch , update second_branch on github. how can that?
the status of second_branch is:
this branch 3 commits ahead, 1 commit behind master
you can use git reset point branch different commit. so, on second_branch,
git reset --hard master then git push -f update github.
Comments
Post a Comment