होने के लिए मजबूर करें मैंने मास्टर और मूल/मास्टर को किनारे पर फंसने दिया है, और अब उस शाखा में हुए बदलावों में दिलचस्पी नहीं है।मेरे स्थानीय मास्टर को मूल/मास्टर
मैं इन निर्देशों का पालन सही जगह Make the current git branch a master branch
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
जो Git स्थिति को छोड़कर ठीक काम करने के लिए अपने स्थानीय गुरु की ओर इशारा करते प्राप्त करने के लिए मैं अब कैसे राजी करते मूल/मास्टर देता है
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
तो (github) मेरे गुरु को प्रतिबिंबित करने के लिए। मूल/मास्टर पर अनाथ कुछ भी सुरक्षित रूप से त्याग दिया जा सकता है।
'गिट पुश -फ मूल मास्टर: मास्टर'? – 1615903