La Force de mon maître local à origin/master

J'ai laissé maître et origin/master coincé dans la marge, et je ne suis plus intéressé par les changements sur cette branche.

J'ai suivi ces instructions pour obtenir mon maître local pointant vers la droite endroit
Faire de l'actuelle branche git une branche master

 git checkout better_branch
 git merge --strategy=ours master    # keep the content of this branch, but record a merge
 git checkout master
 git merge better_branch             # fast-forward master up to the merge

qui a bien fonctionné sauf git status donne

C:\data\localprojects\Beko2011Azure [master]> git status

# On branch master
# Your branch and 'origin/master' have diverged,
# and have 395 and 2 different commits each, respectively.
#
nothing to commit, working directory clean

alors, comment dois-je maintenant persuader origin/master (github) le reflet de mon maître. Rien orphelins sur origin/master peut être en toute sécurité abandonné.

  • git push -f origin master:master?
InformationsquelleAutor Andiih | 2013-04-19