Git பல்வேறு சூழ்நிலைகளைப் பொறுத்து மாற்றங்களை செயல்நீக்கம் செய்ய பல வழிகளை வழங்குகிறது — committed செய்யாத மாற்றங்களைத் தூக்கியெறிதல், unstaging, கடைசி commit-ஐ திருத்துதல், commit-ஐ revert செய்தல், அல்லது reset செய்தல். ஒவ்வொரு சூழ்நிலைக்கும் சரியான கருவியை அறிந்திருப்பது முக்கியமான, மதிப்புள்ள பயன்முறை திறமை.
Uncommitted மாற்றங்களைச் செயல்நீக்கம் செய்தல் (working directory)
git restore <file> # discard unstaged changes to a file (revert to last commit)
git checkout -- <file> # older equivalent
git restore .
git clean -fd
