Horje
How to undo the most recent local commits in Git Code Example
How to undo the most recent local commits in Git
$ git commit -m "Your wrong commit" 		   # (0: Your Accident)
$ git reset HEAD~                              # (1)
[ edit files as necessary ]                    # (2)
$ git add .                                    # (3)
$ git commit -c ORIG_HEAD                      # (4)
// with -c ORIG_HEAD will open an editor, which initially contains the log message from the old commit and allows you to edit it. If you do not need to edit the message, you could use the -C option




Shell

Related
git push to different local folder Code Example git push to different local folder Code Example
awk get mean Code Example awk get mean Code Example
Turn on bluetooth in kali linux / soft unblock Code Example Turn on bluetooth in kali linux / soft unblock Code Example
git push an existing repo from cmd/bash Code Example git push an existing repo from cmd/bash Code Example
python code in bash script Code Example python code in bash script Code Example

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