मैं अपने पिछले करने के लिए प्रमुख सूचक रीसेट प्रतिबद्धअस्वीकृत अद्यतन जब प्रमुख सूचक rebase करने की कोशिश कर
$ git reset --hard HEAD~1
HEAD के लिए ले जाया करना चाहता था पिछले प्रतिबद्ध है, तथापि, असमर्थ मेरी मूल मालिक को पुश करने के लिए
$git push origin master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/username/repo.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
मैं अपने पॉइंटर को कैसे स्थानांतरित कर सकता हूं और परिवर्तन को अपडेट करने के लिए गिट को बता सकता हूं?