मैं काम कर पेड़ राज्य निम्नलिखित हैGit: पूर्ववत नहीं कर सकते स्थानीय परिवर्तन (त्रुटि: पथ ... मर्ज ना किए गए है)
$ git status foo/bar.txt
# On branch master
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# deleted by us: foo/bar.txt
#
no changes added to commit (use "git add" and/or "git commit -a")
फ़ाइल foo/bar.txt
है और मैं "अपरिवर्तित राज्य" करने के लिए इसे प्राप्त करना चाहते हैं फिर से ('SVN वापस लाएं' के समान):
$ git checkout HEAD foo/bar.txt
error: path 'foo/bar.txt' is unmerged
$ git reset HEAD foo/bar.txt
Unstaged changes after reset:
M foo/bar.txt
अब यह भ्रामक हो रही है: दोनों वर्गों में एक ही फाइल
$ git status foo/bar.txt
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: foo/bar.txt
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: foo/bar.txt
#
, ne डब्ल्यू और संशोधित? मुझे क्या करना चाहिए?
काश कोई समझा सकता है कि कैसे हम इस स्थिति में मिलता है, * क्यों * ऐसा होता है, और क्यों समाधान काम करता है। –