YUNOVA · Git & GitHub · Module 2: Roz Ke Command

Commit ko undo kaise karein

Notes for offline study · 30 November 2026

Commit ko undo kaise karein

Key points

  • अभी-अभी किया commit सुधारना हो तो git commit --amend काम आता है।
  • commit हटाकर बदलाव बचाए रखने हों तो reset को --soft के साथ चलाते हैं।
  • --hard बदलाव भी मिटा देता है और वह वापस नहीं आते — उसे सोच-समझकर चलाएँ।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.