Horje
git revert only part of commit Code Example
git revert only part of commit
Use the --no-commit (-n) option to git revert, then unstage the changes, then use git add --patch:

$ git revert -n $bad_commit    # Revert the commit, but don't commit the changes
$ git reset HEAD .             # Unstage the changes
$ git add --patch .            # Add whatever changes you want
$ git commit                   # Commit those changes
Note: The files you add using git add --patch are the files you want to revert, not the files you want to keep.




Shell

Related
print batch Code Example print batch Code Example
solana create keypair Code Example solana create keypair Code Example
filmora turn off message center Code Example filmora turn off message center Code Example
iterate through text files with spaces batch Code Example iterate through text files with spaces batch Code Example
styled components implicitly has an 'any' type Code Example styled components implicitly has an 'any' type Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10