Skip to content

Commit c1d79e7

Browse files
authored
Add commands
1 parent 632a32f commit c1d79e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,15 @@ Changing an exising remote's URL
163163
```bash
164164
git remote set-url <remote-name> <new-remote-url>
165165
```
166+
167+
## Undo Commit
168+
To undo 1 commit
169+
```bash
170+
git reset HEAD~1
171+
```
172+
173+
## Amend Commit Message
174+
To change the commit message of last commit, which is not pushed
175+
```bash
176+
git commit --amend
177+
```

0 commit comments

Comments
 (0)