File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -70,3 +70,10 @@ shortcut for
70
70
```
71
71
git add . && git commit --amend --no-edit
72
72
```
73
+
74
+ ## force
75
+ rebase on develop or branch + push force
76
+
77
+ ``` gitool -force ```
78
+ ``` gitool -force -branch=master ```
79
+ ``` gitool -fb=master ```
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const argv = require('yargs')
14
14
. alias ( 'l' , 'last' )
15
15
. alias ( 'g' , 'groupBy' )
16
16
. alias ( 'bu' , 'bump' )
17
+ . alias ( 'b' , 'branch' )
17
18
. argv
18
19
19
20
const { prettyPrint, write } = require ( './src/commit-prettier/commit-prettier' ) ;
@@ -83,6 +84,11 @@ if (argv.messageComposer) {
83
84
}
84
85
}
85
86
87
+ if ( argv . force ) {
88
+ const branch = argv . branch || 'develop' ;
89
+ shortCut . ex ( `git add . && git commit --amend --no-edit && git fetch && git pull origin ${ branch } --rebase && git push origin HEAD --force` ) ;
90
+ }
91
+
86
92
if ( argv . cane ) {
87
93
shortCut . ex ( 'git add .' )
88
94
shortCut . ex ( 'git commit --amend --no-edit' )
You can’t perform that action at this time.
0 commit comments