Skip to content

Commit eab43f3

Browse files
authored
Merge pull request #8 from xnivaxhzne/master
Master -> Production
2 parents 600c08f + 5533274 commit eab43f3

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ npm i -g @xniva/git-shortcuts
3131
| `glp` | `git show-branch --no-name HEAD` | Print the last commit message |
3232
| `glc` | `git show-branch --no-name HEAD` | Copy and Print the last commit message |
3333
| `gsf` | `gcm && gpm && git merge --no-commit --no-ff origin/${featureBranch}` | List the changes of a feature branch w.r.t master - for review |
34+
| `gma` | `git merge --abort` | Abort the merge |
3435

3536
### Master branch name is configurable:
3637

bin/git_merge_abort.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /usr/bin/env node
2+
import main from "../lib/git_merge_abort/index.js";
3+
4+
main();

lib/git_merge_abort/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import runCommand from "./../utils/run_command.js";
2+
3+
const main = () => {
4+
runCommand("git merge --abort");
5+
};
6+
7+
export default main;

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@xniva/git-shortcuts",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "Shortcuts for the commonly used git commands",
55
"repository": "https://github.com/kavinkuma6/git-shortcuts",
66
"bin": {
@@ -17,7 +17,8 @@
1717
"glp": "bin/git_print_last_commit_message.js",
1818
"glc": "bin/git_print_copy_last_commit_message.js",
1919
"gr": "bin/git_restore.js",
20-
"gsf": "bin/git_see_feature_files.js"
20+
"gsf": "bin/git_see_feature_files.js",
21+
"gma": "bin/git_merge_abort.js"
2122
},
2223
"author": "Kavinkumar R",
2324
"license": "MIT",

0 commit comments

Comments
 (0)