Skip to content

Commit 06bfa91

Browse files
committed
Add the alias and update the read me
1 parent d793f94 commit 06bfa91

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ npm i -g @xniva/git-shortcuts
3434
| `gma` | `git merge --abort` | Abort the merge |
3535
| `grb` | `git reset --${hardOrSoft} origin/$(git rev-parse --abbrev-ref HEAD)` | Reset the current branch to its remote equivalent |
3636
| `gphf` | `git push origin HEAD --force` | Force push the current branch |
37+
| `gc` | `git commit -m ${commitMessage}` | Commit with the give message |
3738

3839
### Master branch name is configurable:
3940

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"gsf": "bin/git_see_feature_files.js",
2121
"gma": "bin/git_merge_abort.js",
2222
"grb": "bin/git_reset_current_branch.js",
23-
"gphf": "bin/git_push_head_force.js"
23+
"gphf": "bin/git_push_head_force.js",
24+
"gc": "bin/git_commit_message.js"
2425
},
2526
"author": "Kavinkumar R",
2627
"license": "MIT",

0 commit comments

Comments
 (0)