Git में चीज़ें undo करना: restore, reset, revert और reflog
किसी भी stage पर change undo कर पाओगे, बिना save किए edit से लेकर push हो चुके commit तक, reset और revert में से सही चुन पाओगे, और reflog से खोया हुआ काम वापस पा सकोगे।
Beginner 3 · Data and toolsabout 1 hour5 sections
सीधा जवाब
बिना commit किए edits के लिए restore, अपने unpushed commits के लिए reset, push हो चुके commits के लिए revert, और जो काम खो गया लगे उसे ढूँढने के लिए reflog use करो।
ये क्यों ज़रूरी है
देर-सबेर हर कोई गलत चीज़ commit कर देता है। हर situation का safe undo पता हो, तो आप उसे एक मिनट में ठीक कर लेते हो, main तोड़े बिना और दिन भर का काम खोए बिना।
Sign up free to read the whole lesson
The rest of this lesson: 5 parts, video lessons, the best course, practice and a quick check. It is free, takes a few seconds and needs no card.
Accounts are for learners aged 18 and over. Under 18? The quick answer and the first part of every lesson stay open: browse lessons by topic.
Related
Software engineeringBeginner 3: Data and toolsVideo lessonsGit resetGit revertCommit