Answers for "git undo only a chunk"

0

git undo only a chunk

Reset only chuncks from commit:
	git reset HEAD^ -- filename # (very important to specifiy the file, otherwise the commit is deleted…)
	git add -p -- filename. # To remove the lines you don’t want, replace the "-" symbol with " " (space) and delete the entire corresponding "+" line.
Posted by: Guest on July-21-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language