File tree 4 files changed +25
-1
lines changed
4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ List of some daily used commands for tech geeks.
33
33
- [ Clone a repository] ( commands/git/git-clone-repo.md )
34
34
- [ Commit changes] ( commands/git/git-commit.md )
35
35
- [ Create a new branch] ( commands/git/git-new-branch.md )
36
+ - [ Modify Last Commit Details] ( git-commit-amend.md )
36
37
- [ Name Email Config] ( commands/git/git-name-email-config.md )
37
38
- [ Name Email Config Check] ( commands/git/git-name-email-config-check.md )
38
39
- [ Pull changes] ( commands/git/git-pull.md )
Original file line number Diff line number Diff line change
1
+ ### Modify Last Commit Details
2
+
3
+ - To modify commit message
4
+
5
+ ` git commit --amend `
6
+
7
+ - To modify commit author details
8
+
9
+ ` git commit --amend --author "{{NAME}} <{{EMAIL}}>" `
10
+
11
+ - <b >NAME: </b >New name to replace the author name in commit
12
+ - <b >EMAIL: </b >New email to replace the author email in commit
13
+
14
+ ##### Example:
15
+
16
+ ` git commit --amend `
17
+
18
+ ` git commit --ammnd --author Arshad Kazmi <[email protected] > `
19
+
20
+ ##### Related
21
+
22
+ - [ Commit changes] ( git-commit.md )
23
+ - [ Push changes] ( git-push.md )
Original file line number Diff line number Diff line change 14
14
15
15
### Related
16
16
17
- - [ Commit changes] ( git-commit.md )
18
17
- [ Push changes] ( git-push.md )
19
18
- [ Reset File] ( git-reset.md )
20
19
- [ Stage] ( git-stage.md )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Daily used git commands
5
5
- [ Clone a repository] ( git-clone-repo.md )
6
6
- [ Commit changes] ( git-commit.md )
7
7
- [ Create a new branch] ( git-new-branch.md )
8
+ - [ Modify Last Commit Details] ( git-commit-amend.md )
8
9
- [ Name Email Config] ( git-name-email-config.md )
9
10
- [ Name Email Config Check] ( git-name-email-config-check.md )
10
11
- [ Pull changes] ( git-pull.md )
You can’t perform that action at this time.
0 commit comments