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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -